Skip to content

Commit

Permalink
chore(bot); small change to concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed Feb 11, 2024
1 parent 4b32c4c commit 19a4bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/bot/src/sharding/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit 19a4bec

Please sign in to comment.