feat(heal): expose scanner heal admission outcomes (#3292)

Co-authored-by: Henry Guo <marshawcoco@users.noreply.github.com>
Co-authored-by: cxymds <Cxymds@qq.com>
This commit is contained in:
Henry Guo
2026-06-09 11:39:57 +08:00
committed by GitHub
parent 51c26278a4
commit ad9bf41fc8
2 changed files with 91 additions and 5 deletions
+1 -4
View File
@@ -1334,9 +1334,6 @@ impl Metrics {
Metric::HealCheck => {
self.record_scanner_source_checked(ScannerWorkSource::Heal, count);
}
Metric::HealAbandonedObject => {
self.record_scanner_source_executed(ScannerWorkSource::Heal, count);
}
_ => {}
}
}
@@ -2167,7 +2164,7 @@ mod tests {
.find(|work| work.source == ScannerWorkSource::Heal.as_str())
.expect("heal source work should be visible");
assert_eq!(heal.checked, 5);
assert_eq!(heal.executed, 6);
assert_eq!(heal.executed, 0);
}
#[tokio::test]