MissedTickBehavior::Delay everywhere

This commit is contained in:
Bryan Stitt 2023-11-14 13:50:11 -08:00
parent f1ce4962e8
commit a501a2d2fa
2 changed files with 3 additions and 3 deletions

@ -138,8 +138,8 @@ impl StatBuffer {
interval(Duration::from_secs(self.db_save_interval_seconds as u64));
// todo: what behavior?
db_save_interval.set_missed_tick_behavior(tokio::time::MissedTickBehavior::Skip);
tsdb_save_interval.set_missed_tick_behavior(tokio::time::MissedTickBehavior::Skip);
db_save_interval.set_missed_tick_behavior(tokio::time::MissedTickBehavior::Delay);
tsdb_save_interval.set_missed_tick_behavior(tokio::time::MissedTickBehavior::Delay);
// TODO: this should be a FlushedStats that we add to
let mut total_requests = 0;

@ -276,7 +276,7 @@ where
let mut interval = interval(Duration::from_secs(seconds));
// TODO: should we warn if there are delays?
interval.set_missed_tick_behavior(MissedTickBehavior::Skip);
interval.set_missed_tick_behavior(MissedTickBehavior::Delay);
loop {
interval.tick().await;