refactor: add FIXME comment at sending kill message to worker
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 24 Oct 2023 20:16:53 +0000 (22:16 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 24 Oct 2023 20:16:53 +0000 (22:16 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/pools/abstract-pool.ts

index 2545d6a980a1a69e3bd18bcbc11af8b514dda503..00cf56171f181184ff93fe9f24b4a107af188fee 100644 (file)
@@ -974,6 +974,7 @@ export abstract class AbstractPool<
           )
         }
       }
+      // FIXME: should be registered only once
       this.registerWorkerMessageListener(workerNodeKey, killMessageListener)
       this.sendToWorker(workerNodeKey, { kill: true })
     })