Skip to content

Commit

Permalink
Updated connected peers reporting interval once in 20 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
bayk committed Dec 18, 2024
1 parent 590f789 commit ca3df15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/src/mwc/sync/syncer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Arc<Peer>> = self.peers.iter().connected().into_iter().collect();
info!("Has connected peers: {}", peers.len());
Expand Down

0 comments on commit ca3df15

Please sign in to comment.