remove unnecessary aux field from passthrough

This commit is contained in:
Conrad Ludgate
2025-05-29 15:51:57 +01:00
parent 034bdb1552
commit cfa2813446
3 changed files with 1 additions and 4 deletions

View File

@@ -258,7 +258,6 @@ pub(crate) async fn handle_client<S: AsyncRead + AsyncWrite + Unpin>(
Ok(Some(ProxyPassthrough {
client: stream,
aux: node.aux.clone(),
private_link_id: None,
compute: node,
session_id: ctx.session_id(),

View File

@@ -418,7 +418,6 @@ pub(crate) async fn handle_client<S: AsyncRead + AsyncWrite + Unpin + Send>(
Ok(Some(ProxyPassthrough {
client: stream,
aux: node.aux.clone(),
private_link_id,
compute: node,
session_id: ctx.session_id(),

View File

@@ -65,7 +65,6 @@ pub(crate) async fn proxy_pass(
pub(crate) struct ProxyPassthrough<S> {
pub(crate) client: Stream<S>,
pub(crate) compute: PostgresConnection,
pub(crate) aux: MetricsAuxInfo,
pub(crate) session_id: uuid::Uuid,
pub(crate) private_link_id: Option<SmolStr>,
pub(crate) cancel: cancellation::Session,
@@ -84,7 +83,7 @@ impl<S: AsyncRead + AsyncWrite + Unpin> ProxyPassthrough<S> {
let res = proxy_pass(
self.client,
self.compute.stream,
self.aux,
self.compute.aux,
self.private_link_id,
)
.await;