mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-06-01 13:04:51 -04:00
fix(clippy): Use .expect(..) instead of unwrap
This commit is contained in:
parent
dbeb72957d
commit
ec25181581
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ impl NetworkBehaviour for Behaviour {
|
|||
|
||||
if redial && self.sleep.is_none() {
|
||||
self.sleep = Some(Box::pin(tokio::time::sleep(self.backoff.initial_interval)));
|
||||
tracing::info!(seconds_until_next_redial = %self.until_next_redial().unwrap().as_secs(), "Waiting for next redial attempt");
|
||||
tracing::info!(seconds_until_next_redial = %self.until_next_redial().expect("We initialize the backoff without max_elapsed_time").as_secs(), "Waiting for next redial attempt");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue