mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 17:21:34 +00:00
protocols/rendezvous/src/client: Fix clippy warning let-unit-value (#2742)
This commit is contained in:
@ -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)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user