repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: v3.1.9
[poolifier.git]
/
src
/
pools
/
cluster
/
dynamic.ts
diff --git
a/src/pools/cluster/dynamic.ts
b/src/pools/cluster/dynamic.ts
index b93d7e87c4290a21b8a9b8f7c2845647d05592da..9636b423915fc670c9b42f24680cee131f343c3a 100644
(file)
--- a/
src/pools/cluster/dynamic.ts
+++ b/
src/pools/cluster/dynamic.ts
@@
-1,3
+1,4
@@
+import { checkDynamicPoolSize } from '../utils'
import { type PoolType, PoolTypes } from '../pool'
import { type ClusterPoolOptions, FixedClusterPool } from './fixed'
import { type PoolType, PoolTypes } from '../pool'
import { type ClusterPoolOptions, FixedClusterPool } from './fixed'
@@
-26,12
+27,15
@@
export class DynamicClusterPool<
*/
public constructor (
min: number,
*/
public constructor (
min: number,
-
protected readonly
max: number,
+ max: number,
filePath: string,
opts: ClusterPoolOptions = {}
) {
filePath: string,
opts: ClusterPoolOptions = {}
) {
- super(min, filePath, opts)
- this.checkDynamicPoolSize(this.numberOfWorkers, this.max)
+ super(min, filePath, opts, max)
+ checkDynamicPoolSize(
+ this.minimumNumberOfWorkers,
+ this.maximumNumberOfWorkers as number
+ )
}
/** @inheritDoc */
}
/** @inheritDoc */