repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): apply updates
[poolifier.git]
/
src
/
pools
/
cluster
/
dynamic.ts
diff --git
a/src/pools/cluster/dynamic.ts
b/src/pools/cluster/dynamic.ts
index 8ef11c00d8975f38cded441e0ac4a42a639e9116..e8e51947246602194951bb4366c68c9cf9d63ad4 100644
(file)
--- a/
src/pools/cluster/dynamic.ts
+++ b/
src/pools/cluster/dynamic.ts
@@
-34,14
+34,13
@@
export class DynamicClusterPool<
super(min, filePath, opts, max)
checkDynamicPoolSize(
this.minimumNumberOfWorkers,
super(min, filePath, opts, max)
checkDynamicPoolSize(
this.minimumNumberOfWorkers,
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
- this.maximumNumberOfWorkers!
+ this.maximumNumberOfWorkers
)
}
/** @inheritDoc */
protected shallCreateDynamicWorker (): boolean {
)
}
/** @inheritDoc */
protected shallCreateDynamicWorker (): boolean {
- return
!this.full && this.internalBusy()
+ return
(!this.full && this.internalBusy()) || this.empty
}
/** @inheritDoc */
}
/** @inheritDoc */