X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fcluster%2Fdynamic.ts;h=b93d7e87c4290a21b8a9b8f7c2845647d05592da;hb=c90257c0b2d2c8ebdc6abbee02361cc2ddae36b9;hp=a9ccd6977255bcadc43bee150d8684a3ee3ad75e;hpb=e102732c0e3966b81834b2c0bdd087eb051162ad;p=poolifier.git diff --git a/src/pools/cluster/dynamic.ts b/src/pools/cluster/dynamic.ts index a9ccd697..b93d7e87 100644 --- a/src/pools/cluster/dynamic.ts +++ b/src/pools/cluster/dynamic.ts @@ -31,6 +31,7 @@ export class DynamicClusterPool< opts: ClusterPoolOptions = {} ) { super(min, filePath, opts) + this.checkDynamicPoolSize(this.numberOfWorkers, this.max) } /** @inheritDoc */ @@ -38,11 +39,6 @@ export class DynamicClusterPool< return PoolTypes.dynamic } - /** @inheritDoc */ - protected get maxSize (): number { - return this.max - } - /** @inheritDoc */ protected get busy (): boolean { return this.full && this.internalBusy()