Skip to content

Commit

Permalink
benchmark: add a constant declaration for net
Browse files Browse the repository at this point in the history
Constant declaration for `net` is omitted in `idle_server.js`
Add a constant declaration for constant `net`

PR-URL: #3950
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
  • Loading branch information
JungMinu authored and Myles Borins committed Feb 17, 2016
1 parent 3c46ddd commit 2c3e00e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions benchmark/idle_server.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
net = require('net');
connections = 0;
'use strict';

const net = require('net');
var connections = 0;
var errors = 0;

server = net.Server(function (socket) {
var server = net.Server(function (socket) {

socket.on('error', function () {
errors++;
errors++;
});

});
Expand All @@ -28,4 +29,3 @@ setInterval(function () {
console.log("SERVER %d errors: %d", process.pid, errors);
}
}, 1000);

0 comments on commit 2c3e00e

Please sign in to comment.