From aa81de0a732c23bb227538d486a91e0b3e0a2fbc Mon Sep 17 00:00:00 2001 From: 0x676e67 Date: Sun, 19 Jan 2025 10:13:26 +0800 Subject: [PATCH] update --- src/client/http.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/client/http.rs b/src/client/http.rs index b29c5c93..5d8f0fc2 100644 --- a/src/client/http.rs +++ b/src/client/http.rs @@ -1384,10 +1384,9 @@ impl Client { .map(tokio::time::sleep) .map(Box::pin); - let read_timeout_fut = read_timeout - .or(self.inner.read_timeout) - .map(tokio::time::sleep) - .map(Box::pin); + let read_timeout = read_timeout.or(self.inner.read_timeout); + + let read_timeout_fut = read_timeout.map(tokio::time::sleep).map(Box::pin); Pending { inner: PendingInner::Request(PendingRequest {