From 19a4bec5a9ac18abcd9f47d3069a719eb1ef907d Mon Sep 17 00:00:00 2001 From: Snazzah Date: Sat, 10 Feb 2024 22:23:36 -0600 Subject: [PATCH] chore(bot); small change to concurrency --- apps/bot/src/sharding/manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/bot/src/sharding/manager.ts b/apps/bot/src/sharding/manager.ts index f8bbf245..be620c59 100644 --- a/apps/bot/src/sharding/manager.ts +++ b/apps/bot/src/sharding/manager.ts @@ -100,7 +100,7 @@ export default class ShardManager extends EventEmitter { const batches = split(range(this.options.shardCount), concurrency); for (const batchNum in batches) { const batch = batches[batchNum]; - logger.info(`Spawning shards ${batch[0]}-${[...batch].reverse()[0]} in a batch (#${batchNum})`); + if (concurrency !== 1) logger.info(`Spawning shards ${batch[0]}-${[...batch].reverse()[0]} in a batch (#${batchNum})`); await Promise.all(batch.map(spawnShard)); } }