Skip to content

Commit afd758b

Browse files
authored
fix(client): don't spawn pool idle interval if timeout is 0 (#215)
1 parent 9f7a5e0 commit afd758b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/client/legacy/pool.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,9 @@ impl<T: Poolable, K: Key> PoolInner<T, K> {
426426
} else {
427427
return;
428428
};
429+
if dur == Duration::ZERO {
430+
return;
431+
}
429432
let timer = if let Some(timer) = self.timer.clone() {
430433
timer
431434
} else {

0 commit comments

Comments
 (0)