diff --git a/network/src/services/dump_peer_store.rs b/network/src/services/dump_peer_store.rs index a36a2b35b6..43b9f2998b 100644 --- a/network/src/services/dump_peer_store.rs +++ b/network/src/services/dump_peer_store.rs @@ -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 @@ -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) } }