aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-27 15:56:57 +0200
committerChocobozzz <me@florianbigard.com>2022-06-27 15:56:57 +0200
commitccd62a45024d90c004d0d38737fef055b3fe22b7 (patch)
tree8765dc6db1ff3ebe305ccc3ff5ddf4494ed6fe87 /server/lib
parent388a31d241a81aa316ab1bb8b4ffef85afa7bb5b (diff)
downloadPeerTube-ccd62a45024d90c004d0d38737fef055b3fe22b7.tar.gz
PeerTube-ccd62a45024d90c004d0d38737fef055b3fe22b7.tar.zst
PeerTube-ccd62a45024d90c004d0d38737fef055b3fe22b7.zip
Fix workers constants
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/worker/parent-process.ts4
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
19const processImageWorker = new Piscina({ 19const 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
25function processImageFromWorker (options: Parameters<typeof processImage>[0]): Promise<ReturnType<typeof processImage>> { 25function processImageFromWorker (options: Parameters<typeof processImage>[0]): Promise<ReturnType<typeof processImage>> {