protocols/rendezvous/src/client: Fix clippy warning let-unit-value (#2742)

This commit is contained in:
Max Inden
2022-07-01 16:13:21 +02:00
committed by GitHub
parent 748588e3f0
commit 862ae14ae2

View File

@ -310,8 +310,7 @@ fn handle_outbound_event(
expiring_registrations.extend(registrations.iter().cloned().map(|registration| { expiring_registrations.extend(registrations.iter().cloned().map(|registration| {
async move { async move {
// if the timer errors we consider it expired // if the timer errors we consider it expired
let _ = futures_timer::Delay::new(Duration::from_secs(registration.ttl as u64)) futures_timer::Delay::new(Duration::from_secs(registration.ttl as u64)).await;
.await;
(registration.record.peer_id(), registration.namespace) (registration.record.peer_id(), registration.namespace)
} }