refactor: remove unneeded worker choice strategy storage in intermediate
[poolifier.git] / src / pools / selection-strategies / selection-strategies-types.ts
index 1467ab4f566317742dca3f453d6cfedff860fa16..d30f9eeb5c4007250643d03cf36fd26993586618 100644 (file)
@@ -98,21 +98,6 @@ export interface WorkerChoiceStrategyOptions {
   weights?: Record<number, number>
 }
 
-/**
- * Worker choice strategy internal options.
- *
- * @internal
- */
-export interface InternalWorkerChoiceStrategyOptions
-  extends WorkerChoiceStrategyOptions {
-  /**
-   * Number of worker choice retries to perform if no worker is eligible.
-   *
-   * @defaultValue pool maximum size
-   */
-  readonly retries?: number
-}
-
 /**
  * Measurement statistics requirements.
  *
@@ -216,7 +201,7 @@ export interface IWorkerChoiceStrategy {
    *
    * @param opts - The worker choice strategy options.
    */
-  readonly setOptions: (opts: WorkerChoiceStrategyOptions) => void
+  readonly setOptions: (opts: WorkerChoiceStrategyOptions | undefined) => void
   /**
    * Whether the pool has worker nodes ready or not.
    *