mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-08 03:26:36 +08:00
group rpc
This commit is contained in:
parent
b2460d5267
commit
e8de74f76d
@ -62,9 +62,9 @@ func RpcServerInterceptor(ctx context.Context, req interface{}, info *grpc.Unary
|
||||
}
|
||||
|
||||
func RpcClientInterceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) (err error) {
|
||||
if cc == nil {
|
||||
return utils.Wrap(constant.ErrRpcConn, "")
|
||||
}
|
||||
//if cc == nil {
|
||||
// return utils.Wrap(constant.ErrRpcConn, "")
|
||||
//}
|
||||
operationID, ok := ctx.Value("operationID").(string)
|
||||
if !ok {
|
||||
return utils.Wrap(constant.ErrArgs, "ctx missing operationID")
|
||||
|
Loading…
x
Reference in New Issue
Block a user