From ab408ab998a1165444682e7b0f37a4750e98a680 Mon Sep 17 00:00:00 2001 From: Eyejoker Date: Wed, 25 Mar 2026 07:09:01 +0900 Subject: [PATCH] style: prettier formatting --- src/channels/discord.ts | 2 +- src/group-queue.ts | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/channels/discord.ts b/src/channels/discord.ts index a27d636..0a718c2 100644 --- a/src/channels/discord.ts +++ b/src/channels/discord.ts @@ -462,7 +462,7 @@ export class DiscordChannel implements Channel { } // Split files into batches of MAX_ATTACHMENTS - const fileBatches: typeof files[] = []; + const fileBatches: (typeof files)[] = []; for (let i = 0; i < files.length; i += MAX_ATTACHMENTS) { fileBatches.push(files.slice(i, i + MAX_ATTACHMENTS)); } diff --git a/src/group-queue.ts b/src/group-queue.ts index a37932e..578b2c1 100644 --- a/src/group-queue.ts +++ b/src/group-queue.ts @@ -95,7 +95,10 @@ export class GroupQueue { enterRecoveryMode(): void { this.recoveryMode = true; logger.info( - { maxConcurrent: RECOVERY_CONCURRENT_AGENTS, durationMs: RECOVERY_DURATION_MS }, + { + maxConcurrent: RECOVERY_CONCURRENT_AGENTS, + durationMs: RECOVERY_DURATION_MS, + }, 'Entering recovery mode (staggered restart)', ); this.recoveryTimer = setTimeout(() => { @@ -157,7 +160,11 @@ export class GroupQueue { this.waitingGroups.push(groupJid); } logger.debug( - { groupJid, activeCount: this.activeCount, max: this.effectiveMaxConcurrent }, + { + groupJid, + activeCount: this.activeCount, + max: this.effectiveMaxConcurrent, + }, 'At concurrency limit, message queued', ); return;