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

# Conflicts:
#	internal/api_to_rpc/api.go
This commit is contained in:
wangchuxiao
2023-01-12 15:58:26 +08:00
6 changed files with 589 additions and 76 deletions
+1 -3
View File
@@ -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)