Skip to content

Commit

Permalink
benchmark: remove unused parameters
Browse files Browse the repository at this point in the history
Functions onOnline and onMessage in benchmark/cluster/echo.js
had unused parameters. They were removed.

PR-URL: #14640
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
nishijayaraj authored and addaleax committed Aug 10, 2017
1 parent 935d34b commit 574cc37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark/cluster/echo.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if (cluster.isMaster) {
for (var i = 0; i < workers; ++i)
cluster.fork().on('online', onOnline).on('message', onMessage);

function onOnline(msg) {
function onOnline() {
if (++readies === workers) {
bench.start();
broadcast();
Expand All @@ -56,7 +56,7 @@ if (cluster.isMaster) {
}
}

function onMessage(msg) {
function onMessage() {
if (++msgCount === expectedPerBroadcast) {
msgCount = 0;
broadcast();
Expand Down

0 comments on commit 574cc37

Please sign in to comment.