mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-05 01:25:58 +08:00
1
This commit is contained in:
@@ -34,9 +34,7 @@ func RpcServerInterceptor(ctx context.Context, req interface{}, info *grpc.Unary
|
||||
operationID = opts[0]
|
||||
}
|
||||
var opUserID string
|
||||
if opts := md.Get("opUserID"); len(opts) != 1 {
|
||||
return nil, status.New(codes.InvalidArgument, "opUserID error").Err()
|
||||
} else {
|
||||
if opts := md.Get("opUserID"); len(opts) == 1 {
|
||||
opUserID = opts[0]
|
||||
}
|
||||
ctx = trace_log.NewRpcCtx(ctx, funcName, operationID)
|
||||
|
||||
Reference in New Issue
Block a user