Skip to content

Commit

Permalink
protocols/rendezvous/src/client: Fix clippy warning let-unit-value (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden authored Jul 1, 2022
1 parent 748588e commit 862ae14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions protocols/rendezvous/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,7 @@ fn handle_outbound_event(
expiring_registrations.extend(registrations.iter().cloned().map(|registration| {
async move {
// if the timer errors we consider it expired
let _ = futures_timer::Delay::new(Duration::from_secs(registration.ttl as u64))
.await;
futures_timer::Delay::new(Duration::from_secs(registration.ttl as u64)).await;

(registration.record.peer_id(), registration.namespace)
}
Expand Down

0 comments on commit 862ae14

Please sign in to comment.