summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-18 01:37:13 +0100
committerRory& <root@rory.gay>2025-12-18 01:37:13 +0100
commitea629817aaed24a7e46b4317ca2742c77f66b486 (patch)
tree70348cc2019b143b8917d07522fa8f1957f39422
parentClean up some pointless gateway log noise (diff)
downloadserver-ts-ea629817aaed24a7e46b4317ca2742c77f66b486.tar.xz
Fix identify trace
-rw-r--r--src/gateway/opcodes/Identify.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts

index 61ad95ee..406d0c8d 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts
@@ -375,7 +375,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { if (typeof call !== "string") mergeMemberGuildsTrace.micros += (call as { micros: number }).micros; } - const totalQueryTime = taskSw.getElapsedAndReset(); + const guildRelationQueryTime = taskSw.getElapsedAndReset(); // We forgot to migrate user settings from the JSON column of `users` // to the `user_settings` table theyre in now, @@ -608,7 +608,8 @@ export async function onIdentify(this: WebSocket, data: Payload) { validateIntentsAndShardingTime, createSessionTime, userMetaQueryTime, - totalQueryTime, + queryGuildsTime, + guildRelationQueryTime, createUserSettingsTime, mergedMembersTime, generateGuildsListTime, @@ -644,7 +645,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { } as TraceNode); } } - } else if (key === "totalQueryTime") { + } else if (key === "guildRelationQueryTime") { val.calls = []; for (const [subkey, subvalue] of Object.entries({ queryGuildChannelsTime,