Skip to content

Commit

Permalink
fix: pass pool_timer to hyper_util to enable the idle cleanup task
Browse files Browse the repository at this point in the history
  • Loading branch information
RobMor committed Sep 27, 2024
1 parent d85f44b commit 8ddb17b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/async_impl/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8ddb17b

Please sign in to comment.