Merge branch 'errcode' of github.com:OpenIMSDK/Open-IM-Server into errcode

This commit is contained in:
wangchuxiao
2023-03-13 15:39:54 +08:00
4 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func Start(rpcPort int, rpcRegisterName string, prometheusPort int, rpcFn func(c
return utils.Wrap1(err)
}
defer zkClient.Close()
zkClient.AddOption(grpc.WithTransportCredentials(insecure.NewCredentials()))
zkClient.AddOption(mw.GrpcClient(), grpc.WithTransportCredentials(insecure.NewCredentials()))
registerIP, err := network.GetRpcRegisterIP(config.Config.RpcRegisterIP)
if err != nil {
return err