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

Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
This commit is contained in:
John Molakvoæ 2024-06-26 08:32:02 +02:00 committed by Louis
parent db5fbe46ab
commit 8e7ce5d2db

View file

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