X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Finternal%2Fcluster-worker.mjs;h=fee9d3f8b5cbddccd17d58dc4b95cbaf2a5cb8d8;hb=1c881a974a7849061a4e508885b5a96bdc134194;hp=bc3548394616f1426f48dda0c8a4e9719937e15d;hpb=de2e7182cca6b34b000a09bf6d0ddcff4757db3a;p=poolifier.git diff --git a/benchmarks/internal/cluster-worker.mjs b/benchmarks/internal/cluster-worker.mjs index bc354839..fee9d3f8 100644 --- a/benchmarks/internal/cluster-worker.mjs +++ b/benchmarks/internal/cluster-worker.mjs @@ -1,4 +1,4 @@ -import { isMaster } from 'cluster' +import { isPrimary } from 'cluster' import { ClusterWorker } from '../../lib/index.mjs' import { executeTaskFunction } from '../benchmarks-utils.mjs' import { TaskFunctions } from '../benchmarks-types.mjs' @@ -9,7 +9,7 @@ const taskFunction = (data) => { data = data || {} data.function = data.function || TaskFunctions.jsonIntegerSerialization const res = executeTaskFunction(data) - debug === true && console.debug('This is the main thread ' + isMaster) + debug === true && console.debug(`This is the main thread ${isPrimary}`) return res }