Replace unwrap() with error logging

This commit is contained in:
Tobias Reisinger 2024-12-24 23:37:52 +01:00
parent 0b74f358d5
commit 51623bfb9f
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

View file

@ -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);