Merge branch 'optimize-startup' of https://github.com/discordeno/discordeno into optimize-startup

This commit is contained in:
Skillz4Killz
2021-05-15 19:52:56 +00:00
committed by GitHub
+3 -3
View File
@@ -61,11 +61,11 @@ export function spawnShards(firstShardId = 0) {
`4. Running for of loop in spawnShards function.`,
);
queue.forEach(shardId => {
queue.forEach((shardId) => {
bucket.createNextShard.push(async () => {
await ws.tellClusterToIdentify(clusterId, shardId, bucketId);
})
})
});
});
bucket.createNextShard[0]?.();
}