Refactor Event Admin Handlers and Parallelize Target Status Probes (#1501)

This commit is contained in:
houseme
2026-01-14 14:18:02 +08:00
committed by GitHub
parent f795299d53
commit 27480f7625
3 changed files with 165 additions and 243 deletions
+5
View File
@@ -370,6 +370,11 @@ impl TargetList {
self.targets.keys().cloned().collect()
}
/// Returns all targets in the list
pub fn values(&self) -> Vec<Arc<dyn Target<Event> + Send + Sync>> {
self.targets.values().cloned().collect()
}
/// Returns the number of targets
pub fn len(&self) -> usize {
self.targets.len()