Skip to content

Commit 57d8ae4

Browse files
BridgeARryzokuken
authored andcommitted
benchmark: fix variables not being set
Due to the destructuring the outer variables were not set anymore. PR-URL: nodejs#18320 Reviewed-By: James M Snell <[email protected]>
1 parent 16a3c7c commit 57d8ae4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

benchmark/tls/tls-connect.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const bench = common.createBenchmark(main, {
1111

1212
var clientConn = 0;
1313
var serverConn = 0;
14-
var server;
1514
var dur;
1615
var concurrency;
1716
var running = true;
@@ -28,7 +27,7 @@ function main(conf) {
2827
ciphers: 'AES256-GCM-SHA384'
2928
};
3029

31-
server = tls.createServer(options, onConnection);
30+
const server = tls.createServer(options, onConnection);
3231
server.listen(common.PORT, onListening);
3332
}
3433

0 commit comments

Comments
 (0)