repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: code cleanup
[poolifier.git]
/
src
/
pools
/
abstract-pool.ts
diff --git
a/src/pools/abstract-pool.ts
b/src/pools/abstract-pool.ts
index 536f4a03d8a0b2e052bc515b972d1de8098a94ae..8e32218dfd521567663a27b09db1b2747d74b582 100644
(file)
--- a/
src/pools/abstract-pool.ts
+++ b/
src/pools/abstract-pool.ts
@@
-1702,8
+1702,8
@@
export abstract class AbstractPool<
workerNode.info.ready = ready
workerNode.info.taskFunctionNames = taskFunctionNames
if (!this.readyEventEmitted && this.ready) {
workerNode.info.ready = ready
workerNode.info.taskFunctionNames = taskFunctionNames
if (!this.readyEventEmitted && this.ready) {
- this.readyEventEmitted = true
this.emitter?.emit(PoolEvents.ready, this.info)
this.emitter?.emit(PoolEvents.ready, this.info)
+ this.readyEventEmitted = true
}
}
}
}
@@
-1845,14
+1845,6
@@
export abstract class AbstractPool<
this.getWorkerInfo(workerNodeKey).ready = false
}
this.getWorkerInfo(workerNodeKey).ready = false
}
- /** @inheritDoc */
- public hasWorkerNodeBackPressure (workerNodeKey: number): boolean {
- return (
- this.opts.enableTasksQueue === true &&
- this.workerNodes[workerNodeKey].hasBackPressure()
- )
- }
-
private hasBackPressure (): boolean {
return (
this.opts.enableTasksQueue === true &&
private hasBackPressure (): boolean {
return (
this.opts.enableTasksQueue === true &&