From dd043cd30c05a8166bdab4f9665cc34427c2a33b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 26 Sep 2022 09:26:15 +0200 Subject: [PATCH] Cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/pools/selection-strategies.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pools/selection-strategies.ts b/src/pools/selection-strategies.ts index 034b1612..20e02f31 100644 --- a/src/pools/selection-strategies.ts +++ b/src/pools/selection-strategies.ts @@ -60,7 +60,7 @@ class RoundRobinWorkerChoiceStrategy public choose (): Worker { const chosenWorker = this.pool.workers[this.nextWorkerIndex] this.nextWorkerIndex = - this.pool.workers.length - 1 === this.nextWorkerIndex + this.nextWorkerIndex === this.pool.workers.length - 1 ? 0 : this.nextWorkerIndex + 1 return chosenWorker -- 2.34.1