fix: ID > Id (#754)

* Update bot.ts

* id id
This commit is contained in:
ITOH
2021-04-04 19:51:01 +02:00
committed by GitHub
parent 57540567a5
commit 2e397325f5
20 changed files with 148 additions and 148 deletions
+5 -5
View File
@@ -2,15 +2,15 @@ import { ws } from "./ws.ts";
/** Allows users to hook in and change to communicate to different clusters across different servers or anything they like. For example using redis pubsub to talk to other servers. */
export async function tellClusterToIdentify(
workerID: number,
shardID: number,
bucketID: number,
workerId: number,
shardId: number,
bucketId: number,
) {
// When resharding this may exist already
const oldShard = ws.shards.get(shardID);
const oldShard = ws.shards.get(shardId);
// TODO: Use workers
await ws.identify(shardID, ws.maxShards);
await ws.identify(shardId, ws.maxShards);
if (oldShard) {
oldShard.ws.close(4009, "Resharded!");