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 18d0d94 commit 22db588
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions network/src/services/dump_peer_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ impl Future for DumpPeerStoreService {
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
if self.interval.is_none() {
self.interval = {
let mut interval = tokio::time::interval_at(
Instant::now() + DEFAULT_DUMP_INTERVAL,
DEFAULT_DUMP_INTERVAL,
);
let mut interval = tokio::time::interval(DEFAULT_DUMP_INTERVAL);
// 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);
Expand Down

0 comments on commit 22db588

Please sign in to comment.