refactor: remove unneeded worker choice strategy storage in intermediate
[poolifier.git] / src / pools / selection-strategies / round-robin-worker-choice-strategy.ts
index 34c4f596db2af9c3f44e7940c9444effc9d44b77..41326a78ea0ec3ea2b198de4255c827774422f1b 100644 (file)
@@ -3,7 +3,7 @@ import type { IWorker } from '../worker.js'
 import { AbstractWorkerChoiceStrategy } from './abstract-worker-choice-strategy.js'
 import type {
   IWorkerChoiceStrategy,
-  InternalWorkerChoiceStrategyOptions
+  WorkerChoiceStrategyOptions
 } from './selection-strategies-types.js'
 
 /**
@@ -23,7 +23,7 @@ export class RoundRobinWorkerChoiceStrategy<
   /** @inheritDoc */
   public constructor (
     pool: IPool<Worker, Data, Response>,
-    opts: InternalWorkerChoiceStrategyOptions
+    opts?: WorkerChoiceStrategyOptions
   ) {
     super(pool, opts)
   }