mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 05:26:50 +00:00
notification_sys base
This commit is contained in:
@@ -117,10 +117,7 @@ async fn run_data_scanner() {
|
||||
.map_or(Vec::new(), |buf| buf);
|
||||
|
||||
let mut buf_t = Deserializer::new(Cursor::new(buf));
|
||||
let mut cycle_info: CurrentScannerCycle = match Deserialize::deserialize(&mut buf_t) {
|
||||
Ok(info) => info,
|
||||
Err(_) => CurrentScannerCycle::default(),
|
||||
};
|
||||
let mut cycle_info: CurrentScannerCycle = Deserialize::deserialize(&mut buf_t).unwrap_or_default();
|
||||
|
||||
loop {
|
||||
let stop_fn = ScannerMetrics::log(ScannerMetric::ScanCycle);
|
||||
|
||||
Reference in New Issue
Block a user