mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Minify: do not require MinifyWorker two times when creating a pool of two workers
This commit is contained in:
parent
849f3ec8e1
commit
16217a8aa1
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ const logger = log4js.getLogger('Minify');
|
||||||
|
|
||||||
const ROOT_DIR = path.join(settings.root, 'src/static/');
|
const ROOT_DIR = path.join(settings.root, 'src/static/');
|
||||||
|
|
||||||
const threadsPool = new Threads.Pool(() => Threads.spawn(new Threads.Worker('./MinifyWorker')), 2);
|
const threadWorker = new Threads.Worker('./MinifyWorker');
|
||||||
|
const threadsPool = new Threads.Pool(() => Threads.spawn(threadWorker), 2);
|
||||||
|
|
||||||
const LIBRARY_WHITELIST = [
|
const LIBRARY_WHITELIST = [
|
||||||
'async',
|
'async',
|
||||||
|
|
Loading…
Reference in a new issue