Skip to content

Commit

Permalink
Merge pull request #148 from icey-yu/fix-rpc
Browse files Browse the repository at this point in the history
fix: rpc err
  • Loading branch information
icey-yu authored Nov 12, 2024
2 parents 24f8e88 + f28bbf9 commit 054599e
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 054599e

Please sign in to comment.