X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fcluster%2Fdynamic.ts;h=b75b3f800d8dc771176b7f11fa437b3fedab867e;hb=d46660cd0cccf38566337876c3fad0c3795aeb94;hp=d4f270a373bc4e0c79198edf7538cb55a62f5e9d;hpb=f8350486e75b15ed17249cda3d0a55ee807a6a9f;p=poolifier.git diff --git a/src/pools/cluster/dynamic.ts b/src/pools/cluster/dynamic.ts index d4f270a3..b75b3f80 100644 --- a/src/pools/cluster/dynamic.ts +++ b/src/pools/cluster/dynamic.ts @@ -26,7 +26,7 @@ export class DynamicClusterPool< */ public constructor ( min: number, - public readonly max: number, + protected readonly max: number, filePath: string, opts: ClusterPoolOptions = {} ) { @@ -34,7 +34,7 @@ export class DynamicClusterPool< } /** @inheritDoc */ - public get type (): PoolType { + protected get type (): PoolType { return PoolTypes.dynamic } @@ -43,11 +43,6 @@ export class DynamicClusterPool< return this.max } - /** @inheritDoc */ - protected get full (): boolean { - return this.workerNodes.length >= this.max - } - /** @inheritDoc */ protected get busy (): boolean { return this.full && this.internalBusy()