mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-24 22:09:17 +08:00
Multiple gateways
This commit is contained in:
parent
eb7e6a566b
commit
5a0340e927
@ -38,7 +38,7 @@ func RegisterEtcd4Unique(schema, etcdAddr, myHost string, myPort int, serviceNam
|
||||
}
|
||||
|
||||
func GetTarget(schema, myHost string, myPort int, serviceName string) string {
|
||||
return GetPrefix(schema, serviceName) + ":" + net.JoinHostPort(myHost, strconv.Itoa(myPort)) + "/"
|
||||
return GetPrefix4Unique(schema, serviceName) + ":" + net.JoinHostPort(myHost, strconv.Itoa(myPort)) + "/"
|
||||
}
|
||||
|
||||
//etcdAddr separated by commas
|
||||
|
Loading…
x
Reference in New Issue
Block a user