We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9005403 commit 7ae467aCopy full SHA for 7ae467a
1 file changed
db-service/lib/common/generic-pool.js
@@ -165,7 +165,7 @@ class Pool extends EventEmitter {
165
166
async #dispense() {
167
const waiting = this._queue.length
168
- if (waiting < 1) return
+ if (waiting === 0) return
169
const capacity = this._available.size + this._creates.size
170
const shortfall = waiting - capacity
171
if (shortfall > 0 && this.size < this.options.max) {
0 commit comments