Rename FullPool event to busy, update benchmarks
[poolifier.git] / src / pools / selection-strategies.ts
index 53b129c9a4f1dd6cf1883b2d3157026b56b6ee4a..692ace93889efb399c83ab04072be95fbb1ad314 100644 (file)
@@ -144,7 +144,7 @@ class DynamicPoolWorkerChoiceStrategy<Worker extends IWorker, Data, Response>
     }
 
     if (this.pool.workers.length === this.pool.max) {
-      this.pool.emitter.emit('FullPool')
+      this.pool.emitter.emit('busy')
       return this.workerChoiceStrategy.choose()
     }