feat(files): increase max copy-move concurrency to 5

Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
pull/46127/head
John Molakvoæ 2024-06-26 08:32:02 +07:00 committed by GitHub
parent d0d589c661
commit d5b286c9d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

@ -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
}