fix: fix fair share algorithm implementation
[poolifier.git] / src / pools / selection-strategies / less-used-worker-choice-strategy.ts
index 1503e057ef42fc3890eb0e8cfbc33496a1dd9f5e..295493a494f842da32645f563469e5ba272eea3d 100644 (file)
@@ -35,6 +35,11 @@ export class LessUsedWorkerChoiceStrategy<
     return true
   }
 
+  /** @inheritDoc */
+  public update (): boolean {
+    return true
+  }
+
   /** @inheritDoc */
   public choose (): number {
     const freeWorkerNodeKey = this.findFreeWorkerNodeKey()
@@ -57,7 +62,7 @@ export class LessUsedWorkerChoiceStrategy<
   }
 
   /** @inheritDoc */
-  public remove (workerNodeKey: number): boolean {
+  public remove (): boolean {
     return true
   }
 }