diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-06-26 08:32:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-26 08:32:02 +0200 |
commit | d5b286c9d208a48e15143f090fc52bd167a2ded3 (patch) | |
tree | a77a66d0d6ee37f393ee6c0d133f4fa7d11f90ba /apps | |
parent | d0d589c66152853712b5a56d25c0491acfab0a19 (diff) | |
download | nextcloud-server-d5b286c9d208a48e15143f090fc52bd167a2ded3.tar.gz nextcloud-server-d5b286c9d208a48e15143f090fc52bd167a2ded3.zip |
feat(files): increase max copy-move concurrency to 5
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/src/actions/moveOrCopyActionUtils.ts | 5 |
1 files changed, 4 insertions, 1 deletions
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 } |