perf(discord-gateway): parallelize all media downloads into single Promise.all batch

This commit is contained in:
MythEclipse committed 2026-06-02 22:59:33 +07:00
1 parent c18954a263
commit aac80e569f
1 file changed
+1
@@ -1093,6 +1093,7 @@ async function _runSingleMediaAnalysis(
att.uploaded_url ?? null; att.uploaded_url ?? null;
const maxDimension = config.AI_LLM_IMAGE_MAX_DIMENSION ?? 1024; const maxDimension = config.AI_LLM_IMAGE_MAX_DIMENSION ?? 1024;
const content = target.edited_content ?? target.content;
// ── 1-3. Parallel download of ALL media sources ── // ── 1-3. Parallel download of ALL media sources ──
// Build all download promises upfront and execute them in one Promise.all. // Build all download promises upfront and execute them in one Promise.all.