mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-03 00:38:40 +08:00
chore: coding style (#2012)
This commit is contained in:
parent
af6d37c33d
commit
1b2b7647d6
@ -26,9 +26,7 @@ func UnaryTracingInterceptor(ctx context.Context, method string, req, reply inte
|
|||||||
defer span.End()
|
defer span.End()
|
||||||
|
|
||||||
ztrace.MessageSent.Event(ctx, 1, req)
|
ztrace.MessageSent.Event(ctx, 1, req)
|
||||||
|
|
||||||
err := invoker(ctx, method, req, reply, cc, opts...)
|
err := invoker(ctx, method, req, reply, cc, opts...)
|
||||||
// fix: https://github.com/zeromicro/go-zero/issues/1954
|
|
||||||
ztrace.MessageReceived.Event(ctx, 1, reply)
|
ztrace.MessageReceived.Event(ctx, 1, reply)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s, ok := status.FromError(err)
|
s, ok := status.FromError(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user