diff options
author | nishijayaraj <nishijayaraj@gmail.com> | 2017-08-05 15:07:10 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-08-10 19:20:45 +0300 |
commit | 574cc379b93131587f14fd3bc46bed8e4b4e631e (patch) | |
tree | b38cb58a25a5b8d1f82624c4f81436ce80473d67 /benchmark | |
parent | 935d34bd6b11ca478a8a4a3eff9d2c924461567a (diff) |
benchmark: remove unused parameters
Functions onOnline and onMessage in benchmark/cluster/echo.js
had unused parameters. They were removed.
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/cluster/echo.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/cluster/echo.js b/benchmark/cluster/echo.js index 0733bdbd207..1aa06120e15 100644 --- a/benchmark/cluster/echo.js +++ b/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(); |