Skip to content

Commit

Permalink
fix(protocol/mdns): change interval behavior for tokio timer impl
Browse files Browse the repository at this point in the history
  • Loading branch information
gallegogt committed Sep 1, 2022
1 parent 393c19f commit d7e798c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/mdns/src/behaviour/timer.rs
Expand Up @@ -102,7 +102,7 @@ pub mod tokio {
}

fn interval(duration: Duration) -> Self {
let mut inner = time::interval(duration);
let mut inner = time::interval_at(TokioInstant::now() + duration, duration);
inner.set_missed_tick_behavior(MissedTickBehavior::Skip);
Self { inner }
}
Expand Down

0 comments on commit d7e798c

Please sign in to comment.