mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-24 16:55:30 +00:00
replace all var with let (reduces warnings)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user