mirror of
https://github.com/LowderPlay/cheburcheck.git
synced 2026-10-13 09:38:31 +03:00
fix: target probes selection
This commit is contained in:
@@ -71,7 +71,11 @@ pub async fn probe_query(
|
||||
}
|
||||
|
||||
let (target_probe, eligible_probes) = load_probe_targets(pool, token).await?;
|
||||
let expected_probes = mqtt.online_probe_ids(&eligible_probes).await;
|
||||
let expected_probes = if target_probe.is_some() {
|
||||
eligible_probes
|
||||
} else {
|
||||
mqtt.online_probe_ids(&eligible_probes).await
|
||||
};
|
||||
let online_probes = expected_probes.len();
|
||||
let expected_probes = expected_probes.into_iter().collect::<HashSet<_>>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user