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]
|
[package]
|
||||||
name = "emgauwa-core"
|
name = "emgauwa-core"
|
||||||
version = "0.5.1"
|
version = "0.5.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Tobias Reisinger <tobias@msrg.cc>"]
|
authors = ["Tobias Reisinger <tobias@msrg.cc>"]
|
||||||
|
|
||||||
|
@ -12,14 +12,12 @@ actix-web = "4.4"
|
||||||
actix-web-actors = "4.2"
|
actix-web-actors = "4.2"
|
||||||
actix-cors = "0.7"
|
actix-cors = "0.7"
|
||||||
|
|
||||||
utoipa = "4.2"
|
utoipa = "5.3"
|
||||||
utoipa-swagger-ui = { version = "6.0", features = ["actix-web", "debug-embed"] }
|
utoipa-swagger-ui = { version = "8.1", features = ["actix-web", "debug-embed"] }
|
||||||
|
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
|
||||||
chrono = { version = "0.4", features = ["serde"] }
|
itertools = "0.13"
|
||||||
uuid = { version = "1.5", features = ["serde", "v4"] }
|
|
||||||
itertools = "0.12"
|
|
||||||
|
|
||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
|
|
|
@ -32,8 +32,9 @@ impl Actor for RelaysWs {
|
||||||
|
|
||||||
block_on(self.app_state.send(ConnectRelayClient {
|
block_on(self.app_state.send(ConnectRelayClient {
|
||||||
addr: ctx.address(),
|
addr: ctx.address(),
|
||||||
}))
|
})).map_err(
|
||||||
.unwrap();
|
|err| log::error!("Error connecting relay-client: {:?}", err)
|
||||||
|
).ok();
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
log::error!("Error getting relays: {:?}", err);
|
log::error!("Error getting relays: {:?}", err);
|
||||||
|
|
Loading…
Reference in a new issue