From ca3df15e82e6c5cee417c84be5a5856178c2d14f Mon Sep 17 00:00:00 2001 From: bayk Date: Tue, 17 Dec 2024 23:09:52 -0800 Subject: [PATCH] Updated connected peers reporting interval once in 20 minutes --- servers/src/mwc/sync/syncer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/src/mwc/sync/syncer.rs b/servers/src/mwc/sync/syncer.rs index ea35a4856..17a5b9b0e 100644 --- a/servers/src/mwc/sync/syncer.rs +++ b/servers/src/mwc/sync/syncer.rs @@ -127,7 +127,7 @@ impl SyncRunner { // Onle in a while let's dump the peers. Needed to understand how network is doing let now = Utc::now(); - if (now - last_peer_dump).num_seconds() > 60 { + if (now - last_peer_dump).num_seconds() > 60 * 20 { last_peer_dump = now; let peers: Vec> = self.peers.iter().connected().into_iter().collect(); info!("Has connected peers: {}", peers.len());