Skip to content

Commit

Permalink
chore: debug dump peerstore
Browse files Browse the repository at this point in the history
  • Loading branch information
quake committed Nov 19, 2024
1 parent 586a92b commit 242196f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion network/src/services/dump_peer_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::{
task::{Context, Poll},
time::Duration,
};
use tokio::time::{Interval, MissedTickBehavior};
use tokio::time::{Instant, Interval, MissedTickBehavior};

const DEFAULT_DUMP_INTERVAL: Duration = Duration::from_secs(3600); // 1 hour

Expand Down Expand Up @@ -54,6 +54,7 @@ impl Future for DumpPeerStoreService {
// The dump peer store service does not need to urgently compensate for the missed wake,
// just delay behavior is enough
interval.set_missed_tick_behavior(MissedTickBehavior::Delay);
let _ = interval.tick();
Some(interval)
}
}
Expand Down

0 comments on commit 242196f

Please sign in to comment.