X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpools%2Fselection-strategies%2Fround-robin-worker-choice-strategy.ts;h=835860930b0d76f54c37d547b73274d9bf7fb175;hb=bb8907c8d1a6fc3f2d03c3d47406cdde29693fea;hp=936925313f99e9bafa6c3bb8c0a71f7ad0c94fad;hpb=6c6afb8463782af0689101b7c67cea80df83018f;p=poolifier.git diff --git a/src/pools/selection-strategies/round-robin-worker-choice-strategy.ts b/src/pools/selection-strategies/round-robin-worker-choice-strategy.ts index 93692531..83586093 100644 --- a/src/pools/selection-strategies/round-robin-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/round-robin-worker-choice-strategy.ts @@ -12,8 +12,8 @@ import type { * Selects the next worker in a round robin fashion. * * @typeParam Worker - Type of worker which manages the strategy. - * @typeParam Data - Type of data sent to the worker. This can only be serializable data. - * @typeParam Response - Type of execution response. This can only be serializable data. + * @typeParam Data - Type of data sent to the worker. This can only be structured-cloneable data. + * @typeParam Response - Type of execution response. This can only be structured-cloneable data. */ export class RoundRobinWorkerChoiceStrategy< Worker extends IWorker, @@ -27,11 +27,6 @@ export class RoundRobinWorkerChoiceStrategy< useDynamicWorker: true } - /** - * Id of the next worker node. - */ - private nextWorkerNodeId: number = 0 - /** @inheritDoc */ public constructor ( pool: IPool,