Skip to content

Commit

Permalink
fix(client): panic when pool idle timeout set to zero (#3365)
Browse files Browse the repository at this point in the history
From issue: #2997
  • Loading branch information
0x676e67 committed Oct 20, 2023
1 parent 41eaf20 commit 34d3800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl<T> Pool<T> {
waiters: HashMap::new(),
#[cfg(feature = "runtime")]
exec: __exec.clone(),
timeout: config.idle_timeout,
timeout: config.idle_timeout.filter(|&t| t > Duration::ZERO),
})))
} else {
None
Expand Down

0 comments on commit 34d3800

Please sign in to comment.