mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-01 12:59:15 -06:00
Fix workers constants
This commit is contained in:
parent
388a31d241
commit
ccd62a4502
@ -18,8 +18,8 @@ function downloadImageFromWorker (options: Parameters<typeof downloadImage>[0]):
|
||||
|
||||
const processImageWorker = new Piscina({
|
||||
filename: join(__dirname, 'workers', 'image-processor.js'),
|
||||
concurrentTasksPerWorker: WORKER_THREADS.DOWNLOAD_IMAGE.CONCURRENCY,
|
||||
maxThreads: WORKER_THREADS.DOWNLOAD_IMAGE.MAX_THREADS
|
||||
concurrentTasksPerWorker: WORKER_THREADS.PROCESS_IMAGE.CONCURRENCY,
|
||||
maxThreads: WORKER_THREADS.PROCESS_IMAGE.MAX_THREADS
|
||||
})
|
||||
|
||||
function processImageFromWorker (options: Parameters<typeof processImage>[0]): Promise<ReturnType<typeof processImage>> {
|
||||
|
Loading…
Reference in New Issue
Block a user