fix: refine pool statuses handling
[poolifier.git] / src / pools / selection-strategies / interleaved-weighted-round-robin-worker-choice-strategy.ts
index fe6bbb735cfdf16a1ad2019784c37c0fe648490c..b11f0a177aa44925d510b697e48b578fe14169b4 100644 (file)
@@ -40,7 +40,7 @@ export class InterleavedWeightedRoundRobinWorkerChoiceStrategy<
   /**
    * Round weights.
    */
-  private roundWeights!: number[]
+  private roundWeights: number[]
   /**
    * Worker node id.
    */
@@ -56,7 +56,6 @@ export class InterleavedWeightedRoundRobinWorkerChoiceStrategy<
     opts: InternalWorkerChoiceStrategyOptions
   ) {
     super(pool, opts)
-    // this.setOptions(this.opts)
     this.setTaskStatisticsRequirements(this.opts)
     this.roundWeights = this.getRoundWeights()
   }