fix: fix fair share algorithm implementation
[poolifier.git] / src / pools / selection-strategies / worker-choice-strategy-context.ts
index 0a488549f9f9d7240b8d4fd421d64b89ada5401b..e5fddc1b1fc5b400398b2e86bd0ac3b3fd6f97c9 100644 (file)
@@ -119,12 +119,12 @@ export class WorkerChoiceStrategyContext<
    *
    * @returns `true` if the update is successful, `false` otherwise.
    */
-  public update (): boolean {
+  public update (workerNodeKey: number): boolean {
     return (
       this.workerChoiceStrategies.get(
         this.workerChoiceStrategy
       ) as IWorkerChoiceStrategy
-    ).update()
+    ).update(workerNodeKey)
   }
 
   /**