refactor(app): split service into two funtions
This commit is contained in:
@@ -45,5 +45,6 @@ fn main() {
|
||||
Box::new(system_monitor_adapter),
|
||||
Box::new(formatter),
|
||||
);
|
||||
service.run();
|
||||
service.alert_on_threshold_violation();
|
||||
service.send_all_metrics_notification();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user