Skip to content

Commit

Permalink
Set timer for h2 only with http2 feature
Browse files Browse the repository at this point in the history
  • Loading branch information
howardjohn committed May 22, 2023
1 parent 6616b3a commit ae2d344
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/legacy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae2d344

Please sign in to comment.