mirror of
https://github.com/LowderPlay/cheburcheck.git
synced 2026-09-22 22:37:59 +03:00
fix: target probes selection
This commit is contained in:
Generated
+1
-1
@@ -4509,7 +4509,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "website"
|
||||
version = "1.3.5"
|
||||
version = "1.3.6"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"dotenvy",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "website"
|
||||
version = "1.3.5"
|
||||
version = "1.3.6"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -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