From 146038332f6763dbb2d5879bbcddaf3029f94b11 Mon Sep 17 00:00:00 2001 From: Millione Date: Thu, 8 Aug 2024 15:34:54 +0800 Subject: [PATCH] rebase main branch --- volo-thrift/src/transport/multiplex/client.rs | 2 +- volo-thrift/src/transport/pool/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/volo-thrift/src/transport/multiplex/client.rs b/volo-thrift/src/transport/multiplex/client.rs index b8620a93..b949e55e 100644 --- a/volo-thrift/src/transport/multiplex/client.rs +++ b/volo-thrift/src/transport/multiplex/client.rs @@ -158,7 +158,7 @@ where } if cx.transport.should_reuse && resp.is_ok() { if let Transport::Pooled(pooled) = transport { - pooled.reuse(); + pooled.reuse().await; } } resp diff --git a/volo-thrift/src/transport/pool/mod.rs b/volo-thrift/src/transport/pool/mod.rs index 5e49bd30..ee6af47b 100644 --- a/volo-thrift/src/transport/pool/mod.rs +++ b/volo-thrift/src/transport/pool/mod.rs @@ -424,7 +424,7 @@ impl Transport> { pub async fn reuse(self) { match self { Transport::Pooled(pooled) => { - pooled.reuse(); + pooled.reuse().await; } Transport::UnPooled(t) => { t.reuse().await;