fix: ensure worker removal impact is propated to worker choice strategy
[poolifier.git] / src / pools / selection-strategies / dynamic-pool-worker-choice-strategy.ts
index c122c2b11e418aa0da2e2cdef34c344e520be163..1658d176e961eda3295547f55e7050c5a8478143 100644 (file)
@@ -61,4 +61,9 @@ export class DynamicPoolWorkerChoiceStrategy<
     // All workers are busy, create a new worker
     return this.createWorkerCallback()
   }
+
+  /** {@inheritDoc} */
+  public remove (workerKey: number): boolean {
+    return this.workerChoiceStrategy.remove(workerKey)
+  }
 }