Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
chore: adding republish_count
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Paitrault <simon.paitrault@gmail.com>
  • Loading branch information
Freyskeyd committed Mar 2, 2024
1 parent 2d00731 commit 7e0db52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/topos-tce-broadcast/src/task_manager/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ impl IntoFuture for Task {

let mut gossip_timer = tokio::time::interval(Duration::from_secs(5));
gossip_timer.set_missed_tick_behavior(tokio::time::MissedTickBehavior::Skip);
// First tick is instant
gossip_timer.tick().await;

loop {
tokio::select! {
_tick = gossip_timer.tick(), if !self.broadcast_state.received_echo() => {
Expand Down

0 comments on commit 7e0db52

Please sign in to comment.