repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: fix average computation
[poolifier.git]
/
src
/
pools
/
cluster
/
dynamic.ts
diff --git
a/src/pools/cluster/dynamic.ts
b/src/pools/cluster/dynamic.ts
index d4f270a373bc4e0c79198edf7538cb55a62f5e9d..b75b3f800d8dc771176b7f11fa437b3fedab867e 100644
(file)
--- a/
src/pools/cluster/dynamic.ts
+++ b/
src/pools/cluster/dynamic.ts
@@
-26,7
+26,7
@@
export class DynamicClusterPool<
*/
public constructor (
min: number,
*/
public constructor (
min: number,
- p
ublic
readonly max: number,
+ p
rotected
readonly max: number,
filePath: string,
opts: ClusterPoolOptions = {}
) {
filePath: string,
opts: ClusterPoolOptions = {}
) {
@@
-34,7
+34,7
@@
export class DynamicClusterPool<
}
/** @inheritDoc */
}
/** @inheritDoc */
- p
ublic
get type (): PoolType {
+ p
rotected
get type (): PoolType {
return PoolTypes.dynamic
}
return PoolTypes.dynamic
}
@@
-43,11
+43,6
@@
export class DynamicClusterPool<
return this.max
}
return this.max
}
- /** @inheritDoc */
- protected get full (): boolean {
- return this.workerNodes.length >= this.max
- }
-
/** @inheritDoc */
protected get busy (): boolean {
return this.full && this.internalBusy()
/** @inheritDoc */
protected get busy (): boolean {
return this.full && this.internalBusy()