chore: coding style (#2012)

This commit is contained in:
Kevin Wan 2022-06-14 07:25:54 +08:00 committed by GitHub
parent af6d37c33d
commit 1b2b7647d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,9 +26,7 @@ func UnaryTracingInterceptor(ctx context.Context, method string, req, reply inte
defer span.End()
ztrace.MessageSent.Event(ctx, 1, req)
err := invoker(ctx, method, req, reply, cc, opts...)
// fix: https://github.com/zeromicro/go-zero/issues/1954
ztrace.MessageReceived.Event(ctx, 1, reply)
if err != nil {
s, ok := status.FromError(err)