diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/lib/worker/parent-process.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/worker/parent-process.ts b/server/lib/worker/parent-process.ts index 188001677..65300bbc8 100644 --- a/server/lib/worker/parent-process.ts +++ b/server/lib/worker/parent-process.ts | |||
@@ -18,8 +18,8 @@ function downloadImageFromWorker (options: Parameters<typeof downloadImage>[0]): | |||
18 | 18 | ||
19 | const processImageWorker = new Piscina({ | 19 | const processImageWorker = new Piscina({ |
20 | filename: join(__dirname, 'workers', 'image-processor.js'), | 20 | filename: join(__dirname, 'workers', 'image-processor.js'), |
21 | concurrentTasksPerWorker: WORKER_THREADS.DOWNLOAD_IMAGE.CONCURRENCY, | 21 | concurrentTasksPerWorker: WORKER_THREADS.PROCESS_IMAGE.CONCURRENCY, |
22 | maxThreads: WORKER_THREADS.DOWNLOAD_IMAGE.MAX_THREADS | 22 | maxThreads: WORKER_THREADS.PROCESS_IMAGE.MAX_THREADS |
23 | }) | 23 | }) |
24 | 24 | ||
25 | function processImageFromWorker (options: Parameters<typeof processImage>[0]): Promise<ReturnType<typeof processImage>> { | 25 | function processImageFromWorker (options: Parameters<typeof processImage>[0]): Promise<ReturnType<typeof processImage>> { |