X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fcluster%2Fdynamic.ts;h=eb2b996571f665ff14154cf338c387c5dfa28266;hb=ace229a1b5029d3acaeeb4e8abdab415de5318f1;hp=c42e02b0cbfc0fc2ea0b2cd53f200739650f8267;hpb=56960396878dec81e3ebeea5b76387efca8cc2dc;p=poolifier.git diff --git a/src/pools/cluster/dynamic.ts b/src/pools/cluster/dynamic.ts index c42e02b0..eb2b9965 100644 --- a/src/pools/cluster/dynamic.ts +++ b/src/pools/cluster/dynamic.ts @@ -39,6 +39,11 @@ export class DynamicClusterPool< return PoolType.DYNAMIC } + /** @inheritDoc */ + public get size (): number { + return this.max + } + /** @inheritDoc */ protected get full (): boolean { return this.workerNodes.length === this.max