commit
fee3e0cfa0
6 changed files with 10 additions and 8 deletions
2
src/cache/redis.ts
vendored
2
src/cache/redis.ts
vendored
|
@ -4,7 +4,7 @@ import {
|
|||
connect,
|
||||
Redis,
|
||||
RedisConnectOptions
|
||||
} from 'https://deno.land/x/redis@v0.14.1/mod.ts'
|
||||
} from 'https://deno.land/x/redis@v0.22.0/mod.ts'
|
||||
|
||||
/** Redis Cache Adapter for using Redis as a cache-provider. */
|
||||
export class RedisCacheAdapter implements ICacheAdapter {
|
||||
|
|
|
@ -399,7 +399,7 @@ export class Gateway extends HarmonyEventEmitter<GatewayTypedEvents> {
|
|||
await this.cache.delete(`seq_${this.shards?.join('-') ?? '0'}`)
|
||||
}
|
||||
|
||||
this.close(1000, RECONNECT_REASON)
|
||||
this.closeGateway(1000, RECONNECT_REASON)
|
||||
this.initWebsocket()
|
||||
}
|
||||
|
||||
|
@ -418,7 +418,7 @@ export class Gateway extends HarmonyEventEmitter<GatewayTypedEvents> {
|
|||
this.websocket.onerror = this.onerror.bind(this) as any
|
||||
}
|
||||
|
||||
close(code: number = 1000, reason?: string): void {
|
||||
closeGateway(code: number = 1000, reason?: string): void {
|
||||
this.debug(
|
||||
`Closing with code ${code}${
|
||||
reason !== undefined && reason !== '' ? ` and reason ${reason}` : ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue