/**
* Updates the worker node key in the active worker choice strategies in the context internals.
- * @param workerNodeKey
+ * @param workerNodeKey - The worker node key.
* @returns `true` if the update is successful, `false` otherwise.
*/
public update (workerNodeKey: number): boolean {
} while (workerNodeKey == null && retriesCount < this.retries)
if (workerNodeKey == null) {
throw new Error(
- `Worker node key chosen is null or undefined after ${retriesCount} retries`
+ `Worker node key chosen is null or undefined after ${retriesCount.toString()} retries`
)
}
return workerNodeKey
/**
* Adds a worker choice strategy to the context.
* @param workerChoiceStrategy - The worker choice strategy to add.
- * @param pool
+ * @param pool - The pool instance.
* @param opts - The worker choice strategy options.
* @returns The worker choice strategies.
*/