X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fabstract-pool.ts;h=76dca07a8cf676a79f27c81096c6c9ead8ab910d;hb=a1b4a65143c0253b57fee18affd88a554122e955;hp=461fe14560d60b5f617863a6906eb83b2365ac39;hpb=481f686650060f85e72d1c46d5490dab256aab9c;p=poolifier.git diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 461fe145..76dca07a 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -1132,7 +1132,7 @@ export abstract class AbstractPool< ) .filter( (strategy: WorkerChoiceStrategy | undefined) => strategy != null - ) as WorkerChoiceStrategy[]), + )), ]) } @@ -1225,7 +1225,6 @@ export abstract class AbstractPool< }) } - /** @inheritDoc */ public mapExecute ( data: Iterable, @@ -1252,6 +1251,9 @@ export abstract class AbstractPool< * @param initWorkerNodeUsage - Whether to initialize the worker node usage or not. @defaultValue false */ private startMinimumNumberOfWorkers (initWorkerNodeUsage = false): void { + if (this.minimumNumberOfWorkers === 0) { + return + } this.startingMinimumNumberOfWorkers = true while ( this.workerNodes.reduce(