mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-15 02:22:38 +00:00
Add worker name + nix
This commit is contained in:
@@ -39,6 +39,7 @@ in
|
||||
# things we set by default...
|
||||
EVENT_TRANSMISSION = "unix";
|
||||
EVENT_SOCKET_PATH = "/run/spacebar/";
|
||||
WORKER_NAME = "sb-gateway-${port}";
|
||||
}
|
||||
// cfg.extraEnvironment
|
||||
// {
|
||||
|
||||
@@ -67,7 +67,7 @@ import { check } from "./instanceOf";
|
||||
export async function onIdentify(this: WebSocket, data: Payload) {
|
||||
const totalSw = Stopwatch.startNew();
|
||||
const taskSw = Stopwatch.startNew();
|
||||
const gatewayShardName = `sb-gateway`;
|
||||
const gatewayShardName = process.env.WORKER_NAME ?? `sb-gateway`;
|
||||
|
||||
if (this.user_id) {
|
||||
// we've already identified
|
||||
|
||||
Reference in New Issue
Block a user