Skip to content

Commit 22314d8

Browse files
author
Razvan Curcudel
committed
fix
1 parent ca78bc0 commit 22314d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/NodeClusterBase/MasterEndpoint.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class MasterEndpoint extends JSONRPC.EndpointBase
5555
this._bWorkersStarted = false;
5656
this._bWatchingForUpgrade = false;
5757

58-
this.nMaxWorkersCount = Number.MAX_SAFE_INTEGER;
58+
this._nMaxWorkersCount = Number.MAX_SAFE_INTEGER;
5959
}
6060

6161

@@ -73,7 +73,7 @@ class MasterEndpoint extends JSONRPC.EndpointBase
7373
/**
7474
* @param {number} nWorkersCount
7575
*/
76-
set nMaxWorkersCount(nWorkersCount)
76+
set maxWorkersCount(nWorkersCount)
7777
{
7878
assert(typeof nWorkersCount === "number", `Invalid property type for nWorkersCount in MasterEndpoint. Expected "number", but got ${typeof nWorkersCount}.`);
7979

@@ -84,7 +84,7 @@ class MasterEndpoint extends JSONRPC.EndpointBase
8484
/**
8585
* @returns {number}
8686
*/
87-
get nMaxWorkersCount()
87+
get maxWorkersCount()
8888
{
8989
return this._nMaxWorkersCount;
9090
}
@@ -207,7 +207,7 @@ class MasterEndpoint extends JSONRPC.EndpointBase
207207

208208
await this._startServices();
209209

210-
for (let i = 0; i < Math.min(Math.max(os.cpus().length, 1), this.nMaxWorkersCount); i++)
210+
for (let i = 0; i < Math.min(Math.max(os.cpus().length, 1), this.maxWorkersCount); i++)
211211
{
212212
cluster.fork();
213213
}

0 commit comments

Comments
 (0)