mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: reuse shardmanager#latency
This commit is contained in:
parent
00d5dcdaa7
commit
24c2749b15
@ -55,11 +55,7 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
|
||||
}
|
||||
|
||||
get latency() {
|
||||
let acc = 0;
|
||||
|
||||
this.gateway.forEach(s => (acc += s.latency));
|
||||
|
||||
return acc / this.gateway.size;
|
||||
return this.gateway.latency;
|
||||
}
|
||||
|
||||
async loadEvents(dir?: string) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user