feat(app): implement state in order to not flood of notification during run
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user