diff --git a/src/ws/spawn_shards.ts b/src/ws/spawn_shards.ts index a5d4fe0fa..aafa337a3 100644 --- a/src/ws/spawn_shards.ts +++ b/src/ws/spawn_shards.ts @@ -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]?.(); }