From ae2d344e696677492ce8bcbddd0640652a64f569 Mon Sep 17 00:00:00 2001 From: John Howard Date: Fri, 10 Mar 2023 11:05:22 -0800 Subject: [PATCH] Set timer for h2 only with http2 feature --- src/client/legacy.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/legacy.rs b/src/client/legacy.rs index fdcb4eb..f4a0027 100644 --- a/src/client/legacy.rs +++ b/src/client/legacy.rs @@ -1359,6 +1359,7 @@ impl Builder { where M: Timer + Send + Sync + 'static, { + #[cfg(feature = "http2")] self.h2_builder.timer(timer); // TODO(https://github.com/hyperium/hyper/issues/3167) set for pool as well self