From f240fb4bea61484854cecbe711ac20d77c31915d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 16 Nov 2022 14:40:10 +0100 Subject: Fix broadcasting in parallel views --- server/lib/worker/parent-process.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'server/lib/worker/parent-process.ts') diff --git a/server/lib/worker/parent-process.ts b/server/lib/worker/parent-process.ts index 7d4102047..48b6c682b 100644 --- a/server/lib/worker/parent-process.ts +++ b/server/lib/worker/parent-process.ts @@ -1,7 +1,7 @@ import { join } from 'path' import Piscina from 'piscina' import { processImage } from '@server/helpers/image-utils' -import { WORKER_THREADS } from '@server/initializers/constants' +import { JOB_CONCURRENCY, WORKER_THREADS } from '@server/initializers/constants' import { httpBroadcast } from './workers/http-broadcast' import { downloadImage } from './workers/image-downloader' @@ -43,8 +43,9 @@ function parallelHTTPBroadcastFromWorker (options: Parameters