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 Aug 24, 2022
1 parent 77ad6a1 commit 0ec39f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/mdns/src/behaviour/timer.rs
Original file line number Diff line number Diff line change
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 0ec39f1

Please sign in to comment.