repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
feat: smtp client pool example
[poolifier.git]
/
src
/
pools
/
cluster
/
fixed.ts
diff --git
a/src/pools/cluster/fixed.ts
b/src/pools/cluster/fixed.ts
index b5b32527cf595b8b4ec8f52f3290a10e4647cbd4..9022c7025961e9fc206358a48843c9fc5070b0be 100644
(file)
--- a/
src/pools/cluster/fixed.ts
+++ b/
src/pools/cluster/fixed.ts
@@
-72,7
+72,7
@@
export class FixedClusterPool<
worker.on('disconnect', () => {
worker.kill()
})
-
this.sendToWorker(workerNodeKey, { kill: true, workerId: worker.id }
)
+
await this.sendKillMessageToWorker(workerNodeKey, worker.id
)
worker.disconnect()
await waitWorkerExit
}