Skip to content

Commit

Permalink
Merge pull request #46128 from nextcloud/backport/46127/stable29
Browse files Browse the repository at this point in the history
[stable29] feat(files): increase max copy-move concurrency to 5
  • Loading branch information
artonge authored Jul 1, 2024
2 parents 859ff7b + 3950200 commit 35b6745
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion apps/files/src/actions/moveOrCopyActionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions dist/files-init.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-init.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

0 comments on commit 35b6745

Please sign in to comment.