diff --git a/src/async_impl/client.rs b/src/async_impl/client.rs index 9a34f3fb6..095adf4d8 100644 --- a/src/async_impl/client.rs +++ b/src/async_impl/client.rs @@ -726,8 +726,8 @@ impl ClientBuilder { } } - #[cfg(not(target_arch = "wasm32"))] builder.timer(hyper_util::rt::TokioTimer::new()); + builder.pool_timer(hyper_util::rt::TokioTimer::new()); builder.pool_idle_timeout(config.pool_idle_timeout); builder.pool_max_idle_per_host(config.pool_max_idle_per_host); connector.set_keepalive(config.tcp_keepalive);