mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-11 03:59:20 +08:00
Error code standardization
This commit is contained in:
parent
ac284b696a
commit
26905e4cdb
@ -1,6 +1,7 @@
|
||||
package group
|
||||
|
||||
import (
|
||||
"Open_IM/internal/common/network"
|
||||
chat "Open_IM/internal/rpc/msg"
|
||||
"Open_IM/pkg/common/config"
|
||||
"Open_IM/pkg/common/constant"
|
||||
@ -91,7 +92,7 @@ func NewGroupServer(port int) *groupServer {
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
registerIP, err := utils.GetRpcIP()
|
||||
registerIP, err := network.GetRpcIP(config.Config.RpcRegisterIP)
|
||||
err = zkClient.Register(config.Config.RpcRegisterName.OpenImGroupName, registerIP, port)
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
|
Loading…
x
Reference in New Issue
Block a user