From 8e7ce5d2db8e2aabe75a54de65a0410986661fac 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 82a12761cb9..ee9084addad 100644 --- a/apps/files/src/actions/moveOrCopyActionUtils.ts +++ b/apps/files/src/actions/moveOrCopyActionUtils.ts @@ -29,12 +29,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 }