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

This commit is contained in:
wangchuxiao 2023-03-13 10:04:04 +08:00
commit 5feffcef42

View File

@ -59,16 +59,11 @@ func Start(rpcPort int, rpcRegisterName string, prometheusPort int, rpcFn func(c
} }
} }
}() }()
err = rpcFn(zkClient, srv)
if err != nil {
return utils.Wrap1(err)
}
err = srv.Serve(listener) err = srv.Serve(listener)
if err != nil { if err != nil {
return utils.Wrap1(err) return utils.Wrap1(err)
} }
return nil return rpcFn(zkClient, srv)
} }
//func Start(rpcPort int, rpcRegisterName string, prometheusPort int, rpcFn func(client discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error, options ...grpc.ServerOption) error { //func Start(rpcPort int, rpcRegisterName string, prometheusPort int, rpcFn func(client discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error, options ...grpc.ServerOption) error {