diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-27 15:56:57 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-27 15:56:57 +0200 |
commit | ccd62a45024d90c004d0d38737fef055b3fe22b7 (patch) | |
tree | 8765dc6db1ff3ebe305ccc3ff5ddf4494ed6fe87 /server/lib | |
parent | 388a31d241a81aa316ab1bb8b4ffef85afa7bb5b (diff) | |
download | PeerTube-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.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>> { |