X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fcluster%2Fdynamic.ts;h=99a89966e914507fa6868883a0f67c751c8b29c6;hb=ca438ccd304d3b139305672f1d9148b5378b62f1;hp=b93d7e87c4290a21b8a9b8f7c2845647d05592da;hpb=8735b4e51c0cfabc9612d57417834d42042cab4e;p=poolifier.git diff --git a/src/pools/cluster/dynamic.ts b/src/pools/cluster/dynamic.ts index b93d7e87..99a89966 100644 --- a/src/pools/cluster/dynamic.ts +++ b/src/pools/cluster/dynamic.ts @@ -1,4 +1,5 @@ import { type PoolType, PoolTypes } from '../pool' +import { checkDynamicPoolSize } from '../utils' import { type ClusterPoolOptions, FixedClusterPool } from './fixed' /** @@ -31,7 +32,7 @@ export class DynamicClusterPool< opts: ClusterPoolOptions = {} ) { super(min, filePath, opts) - this.checkDynamicPoolSize(this.numberOfWorkers, this.max) + checkDynamicPoolSize(this.numberOfWorkers, this.max) } /** @inheritDoc */