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
/
selection-strategies
/
worker-choice-strategies-context.ts
diff --git
a/src/pools/selection-strategies/worker-choice-strategies-context.ts
b/src/pools/selection-strategies/worker-choice-strategies-context.ts
index d030a4524351beea255a1d57edda357435b70013..a736896a792649a85c9294d9b53aa6633b442820 100644
(file)
--- a/
src/pools/selection-strategies/worker-choice-strategies-context.ts
+++ b/
src/pools/selection-strategies/worker-choice-strategies-context.ts
@@
-128,7
+128,7
@@
export class WorkerChoiceStrategiesContext<
/**
* Updates the worker node key in the active worker choice strategies in the context internals.
/**
* 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 {
* @returns `true` if the update is successful, `false` otherwise.
*/
public update (workerNodeKey: number): boolean {
@@
-174,7
+174,7
@@
export class WorkerChoiceStrategiesContext<
} while (workerNodeKey == null && retriesCount < this.retries)
if (workerNodeKey == null) {
throw new Error(
} 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
)
}
return workerNodeKey
@@
-233,7
+233,7
@@
export class WorkerChoiceStrategiesContext<
/**
* Adds a worker choice strategy to the context.
* @param workerChoiceStrategy - The worker choice strategy to add.
/**
* 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.
*/
* @param opts - The worker choice strategy options.
* @returns The worker choice strategies.
*/