From bf311d8e4d8d0f051d18cd6d17daeab54c1f817d Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 28 Feb 2023 18:14:22 +0000 Subject: [PATCH] Delay prior to reconnecting peers that have disconnected --- src/tracking.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tracking.rs b/src/tracking.rs index ebe0413..2435907 100644 --- a/src/tracking.rs +++ b/src/tracking.rs @@ -161,9 +161,8 @@ async fn connect_peer(current_peer: (PublicKey, SocketAddr), peer_manager: Gossi current_peer.1, ).await { disconnection_future.await; - } else { - tokio::time::sleep(Duration::from_secs(10)).await; } + tokio::time::sleep(Duration::from_secs(10)).await; } }); true -- 2.39.5