Replace unwrap() with error logging
This commit is contained in:
parent
0b74f358d5
commit
892786d2f3
3 changed files with 7 additions and 8 deletions
BIN
Cargo.lock
generated
BIN
Cargo.lock
generated
Binary file not shown.
10
Cargo.toml
10
Cargo.toml
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "emgauwa-core"
|
||||
version = "0.5.1"
|
||||
version = "0.5.2"
|
||||
edition = "2021"
|
||||
authors = ["Tobias Reisinger <tobias@msrg.cc>"]
|
||||
|
||||
|
@ -12,14 +12,12 @@ actix-web = "4.4"
|
|||
actix-web-actors = "4.2"
|
||||
actix-cors = "0.7"
|
||||
|
||||
utoipa = "4.2"
|
||||
utoipa-swagger-ui = { version = "6.0", features = ["actix-web", "debug-embed"] }
|
||||
utoipa = "5.3"
|
||||
utoipa-swagger-ui = { version = "8.1", features = ["actix-web", "debug-embed"] }
|
||||
|
||||
log = "0.4"
|
||||
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
uuid = { version = "1.5", features = ["serde", "v4"] }
|
||||
itertools = "0.12"
|
||||
itertools = "0.13"
|
||||
|
||||
serde = "1.0"
|
||||
serde_json = "1.0"
|
||||
|
|
|
@ -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