From 01a5b5fbb32965ab3f862defc2d31e996660175b Mon Sep 17 00:00:00 2001 From: Max <82761650+MaxMustermann2@users.noreply.github.com> Date: Fri, 18 Nov 2022 18:53:38 +0000 Subject: [PATCH] fix: make localnet sharding structure consistent (#4305) As a follow up to #4270, ensure that all localnet URLs returned as part of the sharding structure are accurate. Signed-off-by: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com> Signed-off-by: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com> --- internal/configs/sharding/localnet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/configs/sharding/localnet.go b/internal/configs/sharding/localnet.go index 374e69bd7..9299e2f59 100644 --- a/internal/configs/sharding/localnet.go +++ b/internal/configs/sharding/localnet.go @@ -125,8 +125,8 @@ func (ls localnetSchedule) GetShardingStructure(numShard, shardID int) []map[str res = append(res, map[string]interface{}{ "current": int(shardID) == i, "shardID": i, - "http": fmt.Sprintf("http://127.0.0.1:%d", 9500+i), - "ws": fmt.Sprintf("ws://127.0.0.1:%d", 9800+i), + "http": fmt.Sprintf("http://127.0.0.1:%d", 9500+2*i), + "ws": fmt.Sprintf("ws://127.0.0.1:%d", 9800+2*i), }) } return res