fix: ensure worker choice is retried at least the pool max size
[poolifier.git] / src / pools / cluster / fixed.ts
index 46cabdcb75787700bab966bed3ce3312056659ad..d6481be720914c2af14c56bf0182030aa0a456da 100644 (file)
@@ -26,9 +26,10 @@ export class FixedClusterPool<
   public constructor (
     numberOfWorkers: number,
     filePath: string,
-    protected readonly opts: PoolOptions<Worker> = {}
+    opts: PoolOptions<Worker> = {},
+    maximumNumberOfWorkers?: number
   ) {
-    super(numberOfWorkers, filePath, opts)
+    super(numberOfWorkers, filePath, opts, maximumNumberOfWorkers)
   }
 
   /** @inheritDoc */