From e536fb2f72e4883979b451b60b12c44f5f94313c Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 18 Jul 2022 18:30:53 +0200 Subject: replace all var with let (reduces warnings) --- bundle/scripts/benchmark/connections.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bundle/scripts/benchmark/connections.js') diff --git a/bundle/scripts/benchmark/connections.js b/bundle/scripts/benchmark/connections.js index ffca2628..7e1abc10 100644 --- a/bundle/scripts/benchmark/connections.js +++ b/bundle/scripts/benchmark/connections.js @@ -4,7 +4,7 @@ const WebSocket = require("ws"); const endpoint = process.env.GATEWAY || "ws://localhost:3001"; const connections = Number(process.env.CONNECTIONS) || 50; const token = process.env.TOKEN; -var cores = 1; +let cores = 1; try { cores = Number(process.env.THREADS) || os.cpus().length; } catch { @@ -12,7 +12,7 @@ try { } if (!token) { - console.error("TOKEN env var missing"); + console.error("TOKEN env let missing"); process.exit(); } -- cgit 1.5.1