Properly integrate standard JS tools for JS and TS code
[poolifier.git] / src / pools / selection-strategies / round-robin-worker-choice-strategy.ts
index 082c7d21a6b988f18ff8768fdd0868c357205d9e..0a9fbb7b0a386e1f2ec2f7a78c8f0bf61a9d8572 100644 (file)
@@ -19,7 +19,8 @@ export class RoundRobinWorkerChoiceStrategy<
   private nextWorkerIndex: number = 0
 
   /** @inheritDoc */
-  public resetStatistics (): boolean {
+  public reset (): boolean {
+    this.nextWorkerIndex = 0
     return true
   }