mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-11 05:39:02 +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) {
|
func RpcClientInterceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) (err error) {
|
||||||
if cc == nil {
|
//if cc == nil {
|
||||||
return utils.Wrap(constant.ErrRpcConn, "")
|
// return utils.Wrap(constant.ErrRpcConn, "")
|
||||||
}
|
//}
|
||||||
operationID, ok := ctx.Value("operationID").(string)
|
operationID, ok := ctx.Value("operationID").(string)
|
||||||
if !ok {
|
if !ok {
|
||||||
return utils.Wrap(constant.ErrArgs, "ctx missing operationID")
|
return utils.Wrap(constant.ErrArgs, "ctx missing operationID")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user