From 51623bfb9fa6a324e2c5954a21695a672c9700ba Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Tue, 24 Dec 2024 23:37:52 +0100 Subject: [PATCH] Replace unwrap() with error logging --- src/handlers/v1/ws/relays/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/handlers/v1/ws/relays/mod.rs b/src/handlers/v1/ws/relays/mod.rs index 106053d..72e432f 100644 --- a/src/handlers/v1/ws/relays/mod.rs +++ b/src/handlers/v1/ws/relays/mod.rs @@ -32,8 +32,9 @@ impl Actor for RelaysWs { block_on(self.app_state.send(ConnectRelayClient { addr: ctx.address(), - })) - .unwrap(); + })).map_err( + |err| log::error!("Error connecting relay-client: {:?}", err) + ).ok(); } Err(err) => { log::error!("Error getting relays: {:?}", err);