Skip to content

Commit e22eabb

Browse files
authored
Merge pull request #46129 from nextcloud/backport/46127/stable28
[stable28] feat(files): increase max copy-move concurrency to 5
2 parents db5fbe4 + c192437 commit e22eabb

5 files changed

Lines changed: 10 additions & 7 deletions

File tree

apps/files/src/actions/moveOrCopyActionUtils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@ import PQueue from 'p-queue'
2929
// This is the processing queue. We only want to allow 3 concurrent requests
3030
let queue: PQueue
3131

32+
// Maximum number of concurrent operations
33+
const MAX_CONCURRENCY = 5
34+
3235
/**
3336
* Get the processing queue
3437
*/
3538
export const getQueue = () => {
3639
if (!queue) {
37-
queue = new PQueue({ concurrency: 3 })
40+
queue = new PQueue({ concurrency: MAX_CONCURRENCY })
3841
}
3942
return queue
4043
}

dist/files-init.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-init.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)