aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files/src/actions/moveOrCopyActionUtils.ts5
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
}