diff --git a/sqlx-core/src/pool/inner.rs b/sqlx-core/src/pool/inner.rs index 476ea5df28..27cbb9b841 100644 --- a/sqlx-core/src/pool/inner.rs +++ b/sqlx-core/src/pool/inner.rs @@ -77,7 +77,7 @@ impl PoolInner { // Keep clearing the idle queue as connections are released until the count reaches zero. async move { - let mut drained = pin!(self.counter.drain()); + let mut drained = pin!(self.counter.drain().fuse()); loop { select! {