From d5b286c9d208a48e15143f090fc52bd167a2ded3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Wed, 26 Jun 2024 08:32:02 +0200 Subject: [PATCH] feat(files): increase max copy-move concurrency to 5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files/src/actions/moveOrCopyActionUtils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/files/src/actions/moveOrCopyActionUtils.ts b/apps/files/src/actions/moveOrCopyActionUtils.ts index 511fd32d134..d55247c8662 100644 --- a/apps/files/src/actions/moveOrCopyActionUtils.ts +++ b/apps/files/src/actions/moveOrCopyActionUtils.ts @@ -10,12 +10,15 @@ import PQueue from 'p-queue' // This is the processing queue. We only want to allow 3 concurrent requests let queue: PQueue +// Maximum number of concurrent operations +const MAX_CONCURRENCY = 5 + /** * Get the processing queue */ export const getQueue = () => { if (!queue) { - queue = new PQueue({ concurrency: 3 }) + queue = new PQueue({ concurrency: MAX_CONCURRENCY }) } return queue }