X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=src%2Fpools%2Fselection-strategies%2Fround-robin-worker-choice-strategy.ts;h=0a9fbb7b0a386e1f2ec2f7a78c8f0bf61a9d8572;hb=78cea37e264d5ca527bc42eb056f3b9579a2b2c4;hp=082c7d21a6b988f18ff8768fdd0868c357205d9e;hpb=ea7a90d36354a4e1c833271571c6f3eb80428600;p=poolifier.git diff --git a/src/pools/selection-strategies/round-robin-worker-choice-strategy.ts b/src/pools/selection-strategies/round-robin-worker-choice-strategy.ts index 082c7d21..0a9fbb7b 100644 --- a/src/pools/selection-strategies/round-robin-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/round-robin-worker-choice-strategy.ts @@ -19,7 +19,8 @@ export class RoundRobinWorkerChoiceStrategy< private nextWorkerIndex: number = 0 /** @inheritDoc */ - public resetStatistics (): boolean { + public reset (): boolean { + this.nextWorkerIndex = 0 return true }