Multiple gateways

pull/265/head
skiffer-git 2 years ago
parent 079fe089de
commit eb7e6a566b

@ -38,8 +38,7 @@ func RegisterEtcd4Unique(schema, etcdAddr, myHost string, myPort int, serviceNam
} }
func GetTarget(schema, myHost string, myPort int, serviceName string) string { func GetTarget(schema, myHost string, myPort int, serviceName string) string {
serviceName = serviceName + ":" + net.JoinHostPort(myHost, strconv.Itoa(myPort)) return GetPrefix(schema, serviceName) + ":" + net.JoinHostPort(myHost, strconv.Itoa(myPort)) + "/"
return serviceName
} }
//etcdAddr separated by commas //etcdAddr separated by commas

Loading…
Cancel
Save