MissedTickBehavior::Delay everywhere
This commit is contained in:
parent
f1ce4962e8
commit
a501a2d2fa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user