forked from pinks/eris
1
0
Fork 0

increase upload concurrency

This commit is contained in:
pinks 2023-10-23 02:39:19 +02:00
parent a35f07b036
commit dfa94e219d
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ export async function processUploadQueue() {
// delete the status message // delete the status message
await bot.api.deleteMessage(state.replyMessage.chat.id, state.replyMessage.message_id) await bot.api.deleteMessage(state.replyMessage.chat.id, state.replyMessage.message_id)
.catch(() => undefined); .catch(() => undefined);
}, { concurrency: 3 }); }, { concurrency: 10 });
uploadWorker.addEventListener("error", (e) => { uploadWorker.addEventListener("error", (e) => {
error(`Upload failed for ${formatUserChat(e.detail.job.state)}: ${e.detail.error}`); error(`Upload failed for ${formatUserChat(e.detail.job.state)}: ${e.detail.error}`);