feat(app): implement state in order to not flood of notification during run

This commit is contained in:
2025-08-12 09:40:55 +02:00
parent c1177c5ea5
commit fc31a953aa
8 changed files with 226 additions and 15 deletions

View File

@@ -10,7 +10,7 @@ impl CronAlertsActor {
Self { alert_monitor, period }
}
pub fn start(&self) {
pub fn start(&mut self) {
loop {
if let Err(e) = self.alert_monitor.alert_on_threshold_violation() {
eprintln!("Error occurred: {}", e);