Skip to content

Commit

Permalink
benchmark: fix variables not being set
Browse files Browse the repository at this point in the history
Due to the destructuring the outer variables were not set anymore.

PR-URL: nodejs#18320
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
BridgeAR authored and ryzokuken committed Jun 6, 2018
1 parent 16a3c7c commit 57d8ae4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions benchmark/tls/tls-connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const bench = common.createBenchmark(main, {

var clientConn = 0;
var serverConn = 0;
var server;
var dur;
var concurrency;
var running = true;
Expand All @@ -28,7 +27,7 @@ function main(conf) {
ciphers: 'AES256-GCM-SHA384'
};

server = tls.createServer(options, onConnection);
const server = tls.createServer(options, onConnection);
server.listen(common.PORT, onListening);
}

Expand Down

0 comments on commit 57d8ae4

Please sign in to comment.