X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpools%2Fcluster%2Fdynamic.ts;h=78c63aca64d8da1e879c723bd0fd064f46de83ee;hb=12ae3210477b0c54380db24470ff3b0e78926bd8;hp=b84a80ce2b31b7fc807bceae6b29e1a7eb2af5bd;hpb=d2097c13847f906e289a80638248343948b7f18a;p=poolifier.git diff --git a/src/pools/cluster/dynamic.ts b/src/pools/cluster/dynamic.ts index b84a80ce..78c63aca 100644 --- a/src/pools/cluster/dynamic.ts +++ b/src/pools/cluster/dynamic.ts @@ -1,4 +1,4 @@ -import { PoolType } from '../pool-internal' +import { PoolType } from '../pool' import type { ClusterPoolOptions } from './fixed' import { FixedClusterPool } from './fixed' @@ -40,12 +40,12 @@ export class DynamicClusterPool< } /** @inheritDoc */ - public get full (): boolean { - return this.workers.length === this.max + protected get full (): boolean { + return this.workerNodes.length === this.max } /** @inheritDoc */ - public get busy (): boolean { - return this.full && this.findFreeWorkerKey() === -1 + protected get busy (): boolean { + return this.full && this.internalBusy() } }