mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
cmd/swarm/swarm-smoke: simplify cluster logic as per suggestion
This commit is contained in:
parent
124f92159c
commit
8debd6bcc8
1 changed files with 6 additions and 6 deletions
|
|
@ -38,13 +38,13 @@ import (
|
||||||
|
|
||||||
func generateEndpoints(scheme string, cluster string, from int, to int) {
|
func generateEndpoints(scheme string, cluster string, from int, to int) {
|
||||||
if cluster == "prod" {
|
if cluster == "prod" {
|
||||||
for port := from; port <= to; port++ {
|
cluster = ""
|
||||||
endpoints = append(endpoints, fmt.Sprintf("%s://%v.swarm-gateways.net", scheme, port))
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
for port := from; port <= to; port++ {
|
cluster = cluster + "."
|
||||||
endpoints = append(endpoints, fmt.Sprintf("%s://%v.%s.swarm-gateways.net", scheme, port, cluster))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for port := from; port <= to; port++ {
|
||||||
|
endpoints = append(endpoints, fmt.Sprintf("%s://%v.%sswarm-gateways.net", scheme, port, cluster))
|
||||||
}
|
}
|
||||||
|
|
||||||
if includeLocalhost {
|
if includeLocalhost {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue