From dbb150bbc250cc5115c6c5316741fdcd9f2cb0ae Mon Sep 17 00:00:00 2001 From: Max Inden Date: Fri, 1 Jul 2022 15:52:57 +0200 Subject: [PATCH 1/2] protocols/rendezvous/src/client: Fix clippy warning let-unit-value --- protocols/rendezvous/src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/rendezvous/src/client.rs b/protocols/rendezvous/src/client.rs index 77ea2ae95d4..bc005ebcae9 100644 --- a/protocols/rendezvous/src/client.rs +++ b/protocols/rendezvous/src/client.rs @@ -310,7 +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)) + futures_timer::Delay::new(Duration::from_secs(registration.ttl as u64)) .await; (registration.record.peer_id(), registration.namespace) From 0cb70d4b91526bb7e346fcf9f067e96554b9dc18 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Fri, 1 Jul 2022 15:55:38 +0200 Subject: [PATCH 2/2] Update protocols/rendezvous/src/client.rs --- protocols/rendezvous/src/client.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/protocols/rendezvous/src/client.rs b/protocols/rendezvous/src/client.rs index bc005ebcae9..5ceb945a4f1 100644 --- a/protocols/rendezvous/src/client.rs +++ b/protocols/rendezvous/src/client.rs @@ -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 - 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) }