mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-07-22 17:09:50 +00:00
fix: variable not found
This commit is contained in:
@ -14,7 +14,7 @@ if (cluster.isPrimary) {
|
|||||||
|
|
||||||
// allow to override max worker count
|
// allow to override max worker count
|
||||||
if (process.env.MAX_WORKERS) {
|
if (process.env.MAX_WORKERS) {
|
||||||
maxWorkers = Math.min(parallelism, parseInt(process.env.MAX_WORKERS))
|
maxWorkers = Math.min(maxWorkers, parseInt(process.env.MAX_WORKERS))
|
||||||
}
|
}
|
||||||
|
|
||||||
// create the workers
|
// create the workers
|
||||||
|
Reference in New Issue
Block a user