refactor: cleanups
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 20 Dec 2023 14:54:55 +0000 (15:54 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 20 Dec 2023 14:54:55 +0000 (15:54 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts

index fe8c7543551b97b09a162136490357e9a90b0083..d91f3c69e3ccf8782a5d945ad696aa1eea88d4c1 100644 (file)
@@ -57,7 +57,6 @@ export abstract class AbstractWorkerChoiceStrategy<
     protected readonly pool: IPool<Worker, Data, Response>,
     protected opts: InternalWorkerChoiceStrategyOptions
   ) {
-    // this.setOptions(this.opts)
     this.opts = buildInternalWorkerChoiceStrategyOptions(
       this.pool.info.maxSize,
       this.opts
index 16d8cdbea225cf3d6d8e60efec6924a8fbd8fd3f..b11f0a177aa44925d510b697e48b578fe14169b4 100644 (file)
@@ -40,7 +40,7 @@ export class InterleavedWeightedRoundRobinWorkerChoiceStrategy<
   /**
    * Round weights.
    */
-  private roundWeights!: number[]
+  private roundWeights: number[]
   /**
    * Worker node id.
    */