Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Feb 23, 2024
1 parent 8524d23 commit 9b68d3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function fork(options) {
});

for (var i = 0; i < count; i++) {
const env = { CFORK_WORKER_INDEX: String(i), CFORK_WORKER_COUNT: count };
const env = { CFORK_WORKER_INDEX: String(i), CFORK_WORKER_COUNT: String(count) };
newWorker = forkWorker(null, env);
newWorker._clusterSettings = cluster.settings;
newWorker._clusterWorkerEnv = env;
Expand All @@ -181,7 +181,7 @@ function fork(options) {
slaves.map(normalizeSlaveConfig)
.forEach(function(settings, index) {
if (settings) {
const env = { CFORK_SLAVE_WORKER_INDEX: String(index), CFORK_SLAVE_WORKER_COUNT: slaves.length };
const env = { CFORK_SLAVE_WORKER_INDEX: String(index), CFORK_SLAVE_WORKER_COUNT: String(slaves.length) };
newWorker = forkWorker(settings, env);
newWorker._clusterSettings = settings;
newWorker._clusterWorkerEnv = env;
Expand Down

0 comments on commit 9b68d3d

Please sign in to comment.