fix: direct conn message gateway array exceed length

pull/1775/head
AndrewZuo01 2 years ago
parent d3201fb908
commit 23cbfd7b66

@ -14,6 +14,7 @@ import (
type ServiceAddresses map[string]string
func getServiceAddresses() ServiceAddresses {
fmt.Println("!!!!!!!!!!!!!!!!!!!!!!!!!!", config2.Config.LongConnSvr.OpenImMessageGatewayPort)
return ServiceAddresses{
"OpenImUser": fmt.Sprintf(config2.Config.RpcRegisterName.OpenImUserName, config2.Config.RpcPort.OpenImUserPort[0]),
"OpenImFriend": fmt.Sprintf(config2.Config.RpcRegisterName.OpenImFriendName, config2.Config.RpcPort.OpenImFriendPort[0]),

Loading…
Cancel
Save