repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/examples/typescript/http-client-pool/poolifier-3.1...
[poolifier.git]
/
src
/
pools
/
selection-strategies
/
abstract-worker-choice-strategy.ts
diff --git
a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts
b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts
index 234eada738d22ea4cd472dfe64b1d269e8983f73..0a2b6113b8451bfabfd7fc866d59cc71b2f95ef2 100644
(file)
--- a/
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
+++ b/
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
@@
-57,12
+57,8
@@
export abstract class AbstractWorkerChoiceStrategy<
protected readonly pool: IPool<Worker, Data, Response>,
protected opts?: WorkerChoiceStrategyOptions
) {
protected readonly pool: IPool<Worker, Data, Response>,
protected opts?: WorkerChoiceStrategyOptions
) {
- this.opts = buildWorkerChoiceStrategyOptions<Worker, Data, Response>(
- this.pool,
- this.opts
- )
- this.setTaskStatisticsRequirements(this.opts)
this.choose = this.choose.bind(this)
this.choose = this.choose.bind(this)
+ this.setOptions(this.opts)
}
protected setTaskStatisticsRequirements (
}
protected setTaskStatisticsRequirements (
@@
-125,11
+121,6
@@
export abstract class AbstractWorkerChoiceStrategy<
this.setTaskStatisticsRequirements(this.opts)
}
this.setTaskStatisticsRequirements(this.opts)
}
- /** @inheritDoc */
- public hasPoolWorkerNodesReady (): boolean {
- return this.pool.workerNodes.some(workerNode => workerNode.info.ready)
- }
-
/**
* Whether the worker node is ready or not.
*
/**
* Whether the worker node is ready or not.
*