Skip to content

Commit 1d81cd9

Browse files
committed
fix maxPoolSize and autoscale
1 parent 235f932 commit 1d81cd9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/domain/thread-pool.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,7 @@ export class ThreadPool extends EventEmitter {
552552
}
553553

554554
canCheckout () {
555-
return true
556-
// return this.threads.some(t => t.id === this.locks.pop())
555+
return this.threads.some(t => t.id === this.locks.pop())
557556
}
558557

559558
checkout () {

0 commit comments

Comments
 (0)