diff options
Diffstat (limited to 'crates/dinggerd/src/watcher.rs')
| -rw-r--r-- | crates/dinggerd/src/watcher.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/dinggerd/src/watcher.rs b/crates/dinggerd/src/watcher.rs index 24a2ecd..a2d6dae 100644 --- a/crates/dinggerd/src/watcher.rs +++ b/crates/dinggerd/src/watcher.rs @@ -182,6 +182,7 @@ pub fn advance( pub struct Watcher { tracks: HashMap<String, PaneTrack>, snapshots: crate::snapshot::Recorder, + offer: crate::restore::OfferPublisher, /// Last published (queue, blocked, done, working); avoids rewriting the /// global options every tick. last_published: Option<(String, usize, usize, usize)>, @@ -195,6 +196,7 @@ impl Watcher { Self { tracks: HashMap::new(), snapshots: Default::default(), + offer: Default::default(), last_published: None, interval_secs: interval_secs.max(1), sounds, @@ -226,6 +228,7 @@ impl Watcher { } // After the tick, so snapshots carry the states it just wrote. self.snapshots.tick(unix_now()); + self.offer.tick(); debug!(ms = started.elapsed().as_millis() as u64, "tick"); hooks::wait_for_wake(std::time::Duration::from_secs(self.interval_secs)); } |
