mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
fix(pool): use .fuse()
This commit is contained in:
parent
18908e6206
commit
4d73193c39
@ -78,7 +78,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! {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user