Skip to content

Commit 574cc37

Browse files
nishijayarajaddaleax
authored andcommitted
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 <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 935d34b commit 574cc37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/cluster/echo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if (cluster.isMaster) {
3434
for (var i = 0; i < workers; ++i)
3535
cluster.fork().on('online', onOnline).on('message', onMessage);
3636

37-
function onOnline(msg) {
37+
function onOnline() {
3838
if (++readies === workers) {
3939
bench.start();
4040
broadcast();
@@ -56,7 +56,7 @@ if (cluster.isMaster) {
5656
}
5757
}
5858

59-
function onMessage(msg) {
59+
function onMessage() {
6060
if (++msgCount === expectedPerBroadcast) {
6161
msgCount = 0;
6262
broadcast();

0 commit comments

Comments
 (0)