From 6a8ac62a512d452ccda4eaa9f82775ccce1b69d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 7 Oct 2020 11:57:46 +0200 Subject: [PATCH] crypto: Remove an unwrap. --- matrix_sdk_crypto/src/machine.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/matrix_sdk_crypto/src/machine.rs b/matrix_sdk_crypto/src/machine.rs index fca75050..d84179c1 100644 --- a/matrix_sdk_crypto/src/machine.rs +++ b/matrix_sdk_crypto/src/machine.rs @@ -793,11 +793,13 @@ impl OlmMachine { } } - // TODO remove this unwrap. - self.key_request_machine + if let Err(e) = self + .key_request_machine .collect_incoming_key_requests() .await - .unwrap(); + { + error!("Error collecting our key share requests {:?}", e); + } } /// Decrypt an event from a room timeline.