Skip to content

Commit

Permalink
fix: ensureMinPoolSize should run periodically for the entire life of…
Browse files Browse the repository at this point in the history
… the pool
  • Loading branch information
dariakp committed May 19, 2022
1 parent 1a86dc8 commit fb6de1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cmap/connection_pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ function ensureMinPoolSize(pool: ConnectionPool) {
}
pool[kMinPoolSizeTimer] = setTimeout(() => ensureMinPoolSize(pool), 10);
});
} else {
pool[kMinPoolSizeTimer] = setTimeout(() => ensureMinPoolSize(pool), 100);
}
}

Expand Down

0 comments on commit fb6de1f

Please sign in to comment.