Check config on load (#4170)
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
This commit is contained in:
parent
41ba06a5e6
commit
96bc17aa10
19 changed files with 195 additions and 125 deletions
|
@ -228,7 +228,7 @@ async function init(): Promise<Config> {
|
|||
return config;
|
||||
}
|
||||
|
||||
async function spawnWorkers(limit: number = Infinity) {
|
||||
async function spawnWorkers(limit: number) {
|
||||
const workers = Math.min(limit, os.cpus().length);
|
||||
bootLogger.info(`Starting ${workers} worker${workers === 1 ? '' : 's'}...`);
|
||||
await Promise.all([...Array(workers)].map(spawnWorker));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue