mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
feat(files): increase max copy-move concurrency to 5
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
This commit is contained in:
parent
db5fbe46ab
commit
8e7ce5d2db
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue