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