From 3778081b7b1b78c1d7981ac48f94b0791e2cb2a4 Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Thu, 17 Jul 2025 17:14:58 +0100 Subject: [PATCH] eliminate needless reconnect --- proxy/src/proxy/connect_auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/proxy/connect_auth.rs b/proxy/src/proxy/connect_auth.rs index 77578c71b1..978342cc68 100644 --- a/proxy/src/proxy/connect_auth.rs +++ b/proxy/src/proxy/connect_auth.rs @@ -64,7 +64,7 @@ pub(crate) async fn connect_to_compute_and_auth( match res { Ok(()) => return Ok(node), Err(e) => { - if attempt < 2 + if attempt < 1 && let Backend::ControlPlane(cplane, user_info) = user_info && let ControlPlaneClient::ProxyV1(cplane_proxy_v1) = &**cplane && e.should_retry_wake_compute()