summaryrefslogtreecommitdiff
path: root/benchmark/cluster
diff options
context:
space:
mode:
authornishijayaraj <nishijayaraj@gmail.com>2017-08-05 17:37:10 +0530
committerJames M Snell <jasnell@gmail.com>2017-08-08 15:47:57 -0700
commite67220ec81ce55833559e9d40f44a08b80756a07 (patch)
tree20210447ac42bf7a76c3820f26f1ee6db94ec70b /benchmark/cluster
parent1b719fe3d78e35a494151229b014ebed6a8383bf (diff)
downloadandroid-node-v8-e67220ec81ce55833559e9d40f44a08b80756a07.tar.gz
android-node-v8-e67220ec81ce55833559e9d40f44a08b80756a07.tar.bz2
android-node-v8-e67220ec81ce55833559e9d40f44a08b80756a07.zip
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/cluster')
-rw-r--r--benchmark/cluster/echo.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/cluster/echo.js b/benchmark/cluster/echo.js
index 0733bdbd20..1aa06120e1 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();