From 1cc4f2ce7ea21e67b69aed07225268883200ce14 Mon Sep 17 00:00:00 2001 From: Samuel Rounce Date: Fri, 26 Sep 2025 09:38:33 +0100 Subject: [PATCH] fix: Do not increment MIN_PEERS by 1 Incrementing MIN_PEERS by 1 prevents disabling of this functionality and is also not intuitive as it's not clear to the user that the provided value will be incremented. --- crates/execution-probe/echo/src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/execution-probe/echo/src/server.rs b/crates/execution-probe/echo/src/server.rs index ec70a40..4f8023b 100644 --- a/crates/execution-probe/echo/src/server.rs +++ b/crates/execution-probe/echo/src/server.rs @@ -82,7 +82,7 @@ async fn is_healthy(uri: String, min_peers: u16) -> eyre::Result<()> { } 1 => { let peer_count: U64 = serde_json::from_value(response)?; - if peer_count < U64::from(min_peers + 1) { + if peer_count < U64::from(min_peers) { return Err(eyre::eyre!( "not enough peers min: {:?}, current: {:?}", min_peers,