opts: WorkerChoiceStrategyOptions = DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS
) {
super(pool, opts)
- this.checkOptions(opts)
+ this.checkOptions(this.opts)
}
/** @inheritDoc */
/** @inheritDoc */
public choose (): number {
- const freeWorkerNodeKey = this.pool.findFreeWorkerNodeKey()
+ const freeWorkerNodeKey = this.findFreeWorkerNodeKey()
if (freeWorkerNodeKey !== -1) {
return freeWorkerNodeKey
}