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>
This commit is contained in:
parent
1b719fe3d7
commit
e67220ec81
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user