mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-03 16:45:59 +08:00
Merge branch 'errcode' of github.com:OpenIMSDK/Open-IM-Server into errcode
# Conflicts: # internal/api_to_rpc/api.go
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