summary refs log tree commit diff
path: root/bundle/src/start.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-13 13:18:45 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-13 13:18:45 +0200
commit1cf781e254caa876a2a86bcd355a49ed71babc27 (patch)
treef836f0a5f6ea26dedfd1247f219b8dc97344897b /bundle/src/start.ts
parentMerge branch 'pr/darkhpp/261-2' (diff)
downloadserver-1cf781e254caa876a2a86bcd355a49ed71babc27.tar.xz
:pencil: updated links to fosscord-server
Diffstat (limited to 'bundle/src/start.ts')
-rw-r--r--bundle/src/start.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundle/src/start.ts b/bundle/src/start.ts
index 2ae2ce87..2bfb0069 100644
--- a/bundle/src/start.ts
+++ b/bundle/src/start.ts
@@ -6,7 +6,8 @@ import os from "os";
 import osu from "node-os-utils";
 import exitHook from "async-exit-hook";
 
-const cores = Number(process.env.threads) || 1 || os.cpus().length;
+// TODO: add tcp socket event transmission
+const cores = 1 || Number(process.env.threads) || os.cpus().length;
 
 if (cluster.isMaster && !process.env.masterStarted) {
 	const dbPath = path.join(__dirname, "..", "..", "db");