From dfa94e219d2118e8762453e6cfcb42392daccb43 Mon Sep 17 00:00:00 2001 From: pinks Date: Mon, 23 Oct 2023 02:39:19 +0200 Subject: [PATCH] increase upload concurrency --- app/uploadQueue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/uploadQueue.ts b/app/uploadQueue.ts index 9eea8d3..ae22609 100644 --- a/app/uploadQueue.ts +++ b/app/uploadQueue.ts @@ -132,7 +132,7 @@ export async function processUploadQueue() { // delete the status message await bot.api.deleteMessage(state.replyMessage.chat.id, state.replyMessage.message_id) .catch(() => undefined); - }, { concurrency: 3 }); + }, { concurrency: 10 }); uploadWorker.addEventListener("error", (e) => { error(`Upload failed for ${formatUserChat(e.detail.job.state)}: ${e.detail.error}`);