Skip to content

Commit

Permalink
fix(pool): use .fuse()
Browse files Browse the repository at this point in the history
  • Loading branch information
abonander committed Nov 11, 2024
1 parent c2784eb commit 80831e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlx-core/src/pool/inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl<DB: Database> PoolInner<DB> {

// 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! {
Expand Down

0 comments on commit 80831e8

Please sign in to comment.