refactor: refine autocannon parameters
[poolifier.git] / src / pools / selection-strategies / round-robin-worker-choice-strategy.ts
index 7968e621d49df510c06ad2bd4899b56770b3b163..8a5656b80701fdf0f943b8e651ce0b00a5349f9f 100644 (file)
@@ -32,7 +32,7 @@ export class RoundRobinWorkerChoiceStrategy<
 
   /** @inheritDoc */
   public reset (): boolean {
-    this.nextWorkerNodeKey = 0
+    this.resetWorkerNodeKeyProperties()
     return true
   }
 
@@ -45,7 +45,6 @@ export class RoundRobinWorkerChoiceStrategy<
   public choose (): number | undefined {
     const chosenWorkerNodeKey = this.nextWorkerNodeKey
     this.roundRobinNextWorkerNodeKey()
-    this.checkNextWorkerNodeEligibility(chosenWorkerNodeKey)
     return chosenWorkerNodeKey
   }