Resultify Peerstate::from_fingerprint

This commit is contained in:
Alexander Krotov
2020-08-05 00:00:00 +03:00
committed by link2xt
parent cfd222a109
commit 5bfa82e7ec
3 changed files with 9 additions and 14 deletions

View File

@@ -987,7 +987,7 @@ async fn could_not_establish_secure_connection(
async fn mark_peer_as_verified(context: &Context, fingerprint: &Fingerprint) -> Result<(), Error> {
if let Some(ref mut peerstate) =
Peerstate::from_fingerprint(context, &context.sql, fingerprint).await
Peerstate::from_fingerprint(context, &context.sql, fingerprint).await?
{
if peerstate.set_verified(
PeerstateKeyType::PublicKey,