From 3d3e2f33632c9f770a9d3da980d66567549f3f92 Mon Sep 17 00:00:00 2001 From: ayntee Date: Thu, 24 Dec 2020 17:56:29 +0400 Subject: [PATCH] chore: remove todo comment --- src/ws/shard.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/ws/shard.ts b/src/ws/shard.ts index 035b198b9..6b769243d 100644 --- a/src/ws/shard.ts +++ b/src/ws/shard.ts @@ -1,4 +1,9 @@ -import { botGatewayData, eventHandlers } from "../bot.ts"; +import { + botGatewayData, + eventHandlers, + IdentifyPayload, + proxyWSURL, +} from "../bot.ts"; import { DiscordBotGatewayData, DiscordHeartbeatPayload, @@ -7,9 +12,8 @@ import { ReadyPayload, } from "../types/types.ts"; import { BotStatusRequest, delay } from "../util/utils.ts"; -import { IdentifyPayload, proxyWSURL } from "../bot.ts"; -import { handleDiscordPayload } from "./shard_manager.ts"; import { decompressWith } from "./deps.ts"; +import { handleDiscordPayload } from "./shard_manager.ts"; const basicShards = new Map(); const heartbeating = new Map(); @@ -139,7 +143,6 @@ export async function createShard( } }; - // TODO(ayntee): better ws* event names socket.onclose = ({ reason, code, wasClean }) => { eventHandlers.debug?.( {