docs: refine code comment
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 17 Oct 2023 19:49:28 +0000 (21:49 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 17 Oct 2023 19:49:28 +0000 (21:49 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/pools/abstract-pool.ts

index 9601564fa6458ba4c10fff62bbc265660c9ec26a..645a31e1b1edeed626d47d5d31a2bab23dbeaa83 100644 (file)
@@ -1276,7 +1276,7 @@ export abstract class AbstractPool<
               workerUsage.tasks.executing === 0 &&
               this.tasksQueueSize(localWorkerNodeKey) === 0)))
       ) {
-        // Flag the worker as not ready immediately
+        // Flag the worker node as not ready immediately
         this.flagWorkerNodeAsNotReady(localWorkerNodeKey)
         this.destroyWorkerNode(localWorkerNodeKey).catch(error => {
           this.emitter?.emit(PoolEvents.error, error)