mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 21:16:09 +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() {
|
get latency() {
|
||||||
let acc = 0;
|
return this.gateway.latency;
|
||||||
|
|
||||||
this.gateway.forEach(s => (acc += s.latency));
|
|
||||||
|
|
||||||
return acc / this.gateway.size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async loadEvents(dir?: string) {
|
async loadEvents(dir?: string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user