From: Jérôme Benoit Date: Wed, 25 Oct 2023 16:48:49 +0000 (+0200) Subject: refactor: partially revert wrong change X-Git-Tag: v3.0.5~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8e3b29822fe425b842749b047ab1a17777d69a68;p=poolifier.git refactor: partially revert wrong change Signed-off-by: Jérôme Benoit --- diff --git a/CHANGELOG.md b/CHANGELOG.md index eb0fa9cd..68d1da23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- Ensure worker ready response can be received only once. - Ensure pool ready event can be emitted only once. ## [3.0.4] - 2023-10-20 diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 1140ca1b..604c7af8 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -1540,13 +1540,6 @@ export abstract class AbstractPool< const workerInfo = this.getWorkerInfo( this.getWorkerNodeKeyByWorkerId(message.workerId) ) - if (!this.started && workerInfo.ready) { - throw new Error( - `Ready response already received by worker ${ - message.workerId as number - }` - ) - } workerInfo.ready = message.ready as boolean workerInfo.taskFunctionNames = message.taskFunctionNames if (this.ready) {