X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpools%2Fselection-strategies%2Fselection-strategies-types.ts;h=f499da7fc9d58458f9977910a18cc9246870ba7b;hb=0e8587d2e6bc29e14158c01948c625df9b11d381;hp=1467ab4f566317742dca3f453d6cfedff860fa16;hpb=00e1bdeb5c50b0eede8fe2f72d47bf8992e4aede;p=poolifier.git diff --git a/src/pools/selection-strategies/selection-strategies-types.ts b/src/pools/selection-strategies/selection-strategies-types.ts index 1467ab4f..f499da7f 100644 --- a/src/pools/selection-strategies/selection-strategies-types.ts +++ b/src/pools/selection-strategies/selection-strategies-types.ts @@ -98,21 +98,6 @@ export interface WorkerChoiceStrategyOptions { weights?: Record } -/** - * 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,11 +201,5 @@ export interface IWorkerChoiceStrategy { * * @param opts - The worker choice strategy options. */ - readonly setOptions: (opts: WorkerChoiceStrategyOptions) => void - /** - * Whether the pool has worker nodes ready or not. - * - * @returns Whether the pool has worker nodes ready or not. - */ - readonly hasPoolWorkerNodesReady: () => boolean + readonly setOptions: (opts: WorkerChoiceStrategyOptions | undefined) => void }