sanner(1)

Signed-off-by: mujunxiang <1948535941@qq.com>
This commit is contained in:
mujunxiang
2024-12-03 15:31:43 +08:00
parent 4a173bbd98
commit 7148c5d5cd
8 changed files with 76 additions and 10 deletions
+2
View File
@@ -14,6 +14,7 @@ use std::{
time::SystemTime,
};
use tokio::sync::RwLock;
use tracing::info;
use super::data_scanner::{CurrentScannerCycle, UpdateCurrentPathFn};
@@ -148,6 +149,7 @@ impl ScannerMetrics {
}
pub async fn set_cycle(&mut self, c: Option<CurrentScannerCycle>) {
info!("ScannerMetrics set_cycle {c:?}");
*self.cycle_info.write().await = c;
}