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>
pull/4296/head
Max 2 years ago committed by GitHub
parent 54ca0e8fb8
commit 01a5b5fbb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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

Loading…
Cancel
Save