refactor: use class property if appropriate
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 5 Apr 2023 17:40:46 +0000 (19:40 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 5 Apr 2023 17:40:46 +0000 (19:40 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/selection-strategies/worker-choice-strategy-context.ts

index 605cce38707bb47754d5dabec4fbca72ceaa95a0..97d08682fcf1b62837912d0a3b283f03064e4d50 100644 (file)
@@ -37,7 +37,7 @@ export class WorkerChoiceStrategyContext<
     this.execute.bind(this)
     this.workerChoiceStrategy = getWorkerChoiceStrategy<Worker, Data, Response>(
       pool,
-      workerChoiceStrategyType
+      this.workerChoiceStrategyType
     )
   }