Skip to content
Permalink
Browse files

benchmark: add a constant declaration for `net`

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 rvagg committed Nov 21, 2015
1 parent 14f5bb7 commit 3b6283c163a9eb01e5f415f460826629bff48a98
Showing with 5 additions and 5 deletions.
  1. +5 −5 benchmark/idle_server.js
@@ -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++;
});

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

0 comments on commit 3b6283c

Please sign in to comment.
You can’t perform that action at this time.