Replace unwrap() with error logging
This commit is contained in:
parent
0b74f358d5
commit
51623bfb9f
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue