Skip to content

Commit

Permalink
fix: rpc err
Browse files Browse the repository at this point in the history
  • Loading branch information
icey-yu committed Nov 12, 2024
1 parent 24f8e88 commit f28bbf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mw/rpc_client_interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func RpcClientInterceptor(ctx context.Context, method string, req, resp any, cc
log.ZDebug(ctx, fmt.Sprintf("RPC Client Request - %s", extractFunctionName(method)), "funcName", method, "req", req, "conn target", cc.Target())
defer func() {
if r := recover(); r != nil {
PanicStackToLog(ctx, err)
PanicStackToLog(ctx, r)
}
}()
err = invoker(ctx, method, req, resp, cc, opts...)
Expand Down

0 comments on commit f28bbf9

Please sign in to comment.