fix: prepare code to fix pool internal IPC for cluster worker
[poolifier.git] / benchmarks / internal / cluster-worker.mjs
index 50e4a324a98a580206db83a3dc3dc40bf80efc32..e8d16d217313457bffccb269642644207d1292f0 100644 (file)
@@ -5,7 +5,7 @@ import { WorkerFunctions } from '../benchmarks-types.mjs'
 
 const debug = false
 
-function yourFunction (data) {
+function workerFunction (data) {
   data = data || {}
   data.function = data.function || WorkerFunctions.jsonIntegerSerialization
   executeWorkerFunction(data)
@@ -13,4 +13,4 @@ function yourFunction (data) {
   return { ok: 1 }
 }
 
-export default new ClusterWorker(yourFunction)
+export default new ClusterWorker(workerFunction)