Permalink
Browse files

benchmark: remove unused parameters

Functions onOnline and onMessage in benchmark/cluster/echo.js
had unused parameters. They were removed.

PR-URL: #14640
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information...
nishijayaraj authored and jasnell committed Aug 5, 2017
1 parent 1b719fe commit e67220ec81ce55833559e9d40f44a08b80756a07
Showing with 2 additions and 2 deletions.
  1. +2 −2 benchmark/cluster/echo.js
@@ -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();
@@ -56,7 +56,7 @@ if (cluster.isMaster) {
}
}
function onMessage(msg) {
function onMessage() {
if (++msgCount === expectedPerBroadcast) {
msgCount = 0;
broadcast();

0 comments on commit e67220e

Please sign in to comment.