Skip to content

Commit 34d3800

Browse files
authored
fix(client): panic when pool idle timeout set to zero (#3365)
From issue: #2997
1 parent 41eaf20 commit 34d3800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl<T> Pool<T> {
113113
waiters: HashMap::new(),
114114
#[cfg(feature = "runtime")]
115115
exec: __exec.clone(),
116-
timeout: config.idle_timeout,
116+
timeout: config.idle_timeout.filter(|&t| t > Duration::ZERO),
117117
})))
118118
} else {
119119
None

0 commit comments

Comments
 (0)