-import { type PoolType, PoolTypes } from '../pool'
import { checkDynamicPoolSize } from '../utils'
+import { type PoolType, PoolTypes } from '../pool'
import { type ClusterPoolOptions, FixedClusterPool } from './fixed'
/**
*/
public constructor (
min: number,
- protected readonly max: number,
+ max: number,
filePath: string,
opts: ClusterPoolOptions = {}
) {
- super(min, filePath, opts)
- checkDynamicPoolSize(this.numberOfWorkers, this.max)
+ super(min, filePath, opts, max)
+ checkDynamicPoolSize(
+ this.minimumNumberOfWorkers,
+ this.maximumNumberOfWorkers as number
+ )
}
/** @inheritDoc */