Browse Source

todos++

pull/25/head
Alexey Velikiy 3 years ago
parent
commit
5b8e96ad5e
  1. 7
      server/src/services/analytic_service/detection_runner.rs

7
server/src/services/analytic_service/detection_runner.rs

@ -28,7 +28,7 @@ impl DetectionRunner {
} }
} }
pub async fn run(&mut self) { pub async fn run(&mut self, from: u64) {
// TODO: get last detection timestamp from persistance // TODO: get last detection timestamp from persistance
// TODO: set lst detection from "now" // TODO: set lst detection from "now"
@ -39,14 +39,13 @@ impl DetectionRunner {
// TODO: clone channel // TODO: clone channel
async move { async move {
// AnalyticService::run_learning(tx, cfg, ms, ss).await; // AnalyticService::run_learning(tx, cfg, ms, ss).await;
// TODO: run detection // TODO: run detection "from"
// TODO: await detection step
loop { loop {
// TODO: run detection periodically
// TODO: use interval // TODO: use interval
sleep(Duration::from_secs(100)).await; sleep(Duration::from_secs(100)).await;
} }
} }
})); }));

Loading…
Cancel
Save