mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
Merge branch 'optimize-startup' of https://github.com/discordeno/discordeno into optimize-startup
This commit is contained in:
@@ -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]?.();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user