Skip to content

Commit b0ae86d

Browse files
author
ionut.stan
committed
Removed console.log spam and added an await for best practice case.
1 parent 5ac229b commit b0ae86d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jsonrpc-bidirectional",
33
"description": "Bidirectional JSONRPC over web sockets or HTTP with extensive plugin support.",
4-
"version": "6.7.0",
4+
"version": "6.7.1",
55
"scripts": {
66
"build": "node build.js",
77
"test": "node --expose-gc --max-old-space-size=1024 tests/main.js",

src/NodeClusterBase/MasterEndpoint.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,14 +412,12 @@ class MasterEndpoint extends JSONRPC.EndpointBase
412412
{
413413
if(bFreshlyCachedWorkerProxyMode)
414414
{
415-
console.log("Round robinned " + nCounter);
416415
objRoundRobinState.promiseRPCResult = /*await*/ objWorkerState.client.rpc(strMethodName, arrParams);
417416
return objRoundRobinState.promiseRPCResult;
418417
}
419418
else
420419
{
421-
console.log("Round robinned NOT CACHED " + nCounter);
422-
return /*await*/ objWorkerState.client.rpc(strMethodName, arrParams);
420+
return await objWorkerState.client.rpc(strMethodName, arrParams);
423421
}
424422
}
425423
}

0 commit comments

Comments
 (0)