From cfa2813446330d17ecf5c8bd12357301f82f8c73 Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Thu, 29 May 2025 15:51:57 +0100 Subject: [PATCH] remove unnecessary aux field from passthrough --- proxy/src/console_redirect_proxy.rs | 1 - proxy/src/proxy/mod.rs | 1 - proxy/src/proxy/passthrough.rs | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/proxy/src/console_redirect_proxy.rs b/proxy/src/console_redirect_proxy.rs index cd7542093f..1b68f328f9 100644 --- a/proxy/src/console_redirect_proxy.rs +++ b/proxy/src/console_redirect_proxy.rs @@ -258,7 +258,6 @@ pub(crate) async fn handle_client( Ok(Some(ProxyPassthrough { client: stream, - aux: node.aux.clone(), private_link_id: None, compute: node, session_id: ctx.session_id(), diff --git a/proxy/src/proxy/mod.rs b/proxy/src/proxy/mod.rs index ed4ee4f96c..235a8ed099 100644 --- a/proxy/src/proxy/mod.rs +++ b/proxy/src/proxy/mod.rs @@ -418,7 +418,6 @@ pub(crate) async fn handle_client( Ok(Some(ProxyPassthrough { client: stream, - aux: node.aux.clone(), private_link_id, compute: node, session_id: ctx.session_id(), diff --git a/proxy/src/proxy/passthrough.rs b/proxy/src/proxy/passthrough.rs index 6ece89994a..a1762285ef 100644 --- a/proxy/src/proxy/passthrough.rs +++ b/proxy/src/proxy/passthrough.rs @@ -65,7 +65,6 @@ pub(crate) async fn proxy_pass( pub(crate) struct ProxyPassthrough { pub(crate) client: Stream, pub(crate) compute: PostgresConnection, - pub(crate) aux: MetricsAuxInfo, pub(crate) session_id: uuid::Uuid, pub(crate) private_link_id: Option, pub(crate) cancel: cancellation::Session, @@ -84,7 +83,7 @@ impl ProxyPassthrough { let res = proxy_pass( self.client, self.compute.stream, - self.aux, + self.compute.aux, self.private_link_id, ) .await;