From: Matt Corallo Date: Tue, 28 Feb 2023 18:14:22 +0000 (+0000) Subject: Delay prior to reconnecting peers that have disconnected X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=bf311d8e4d8d0f051d18cd6d17daeab54c1f817d;p=rapid-gossip-sync-server Delay prior to reconnecting peers that have disconnected --- 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