mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
yes
This commit is contained in:
parent
50fca7bdf0
commit
f2d611028a
@ -90,7 +90,7 @@ export class WorkerManager extends Map<number, Worker & { ready?: boolean }> {
|
||||
}
|
||||
|
||||
calculateShardId(guildId: string) {
|
||||
return Number((BigInt(guildId) >> 22n) % BigInt(this.totalShards ?? 1));
|
||||
return Number((BigInt(guildId) >> 22n) % BigInt(this.totalShards));
|
||||
}
|
||||
|
||||
calculateWorkerId(shardId: number) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user