mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-24 23:26:07 +09:00
Fix bug
This commit is contained in:
parent
60252911eb
commit
36d2bdd0b4
@ -224,7 +224,7 @@ async function getMongoDBVersion(db: Db): Promise<string> {
|
||||
return (await db.admin().serverInfo()).version;
|
||||
}
|
||||
|
||||
async function spawnWorkers(limit: number) {
|
||||
async function spawnWorkers(limit: number = Infinity) {
|
||||
const workers = Math.min(limit, os.cpus().length);
|
||||
Logger.info(`Starting ${workers} worker${workers === 1 ? '' : 's'}...`);
|
||||
await Promise.all([...Array(workers)].map(spawnWorker));
|
||||
|
Loading…
Reference in New Issue
Block a user