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 {