Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
papa-hexuan committed Oct 24, 2022
1 parent 927e089 commit 54cc234
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/client/grpc/interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ func debugUnaryClientInterceptor(addr string) grpc.UnaryClientInterceptor {
if remote, ok := peer.FromContext(ctx); ok && remote.Addr != nil {
prefix = prefix + "(" + remote.Addr.String() + ")"
}
fmt.Printf("%-50s[%s] => %s\n", color.GreenString(prefix), time.Now().Format("04:05.000"), color.GreenString("Send: "+method+" | "+xstring.Json(req))) // nolint
fmt.Printf("%-50s[%s] => %s\n", color.GreenString(prefix), time.Now().Format("04:05.000"), color.GreenString("Send: "+method+" | "+xstring.Json(req))) // nolint:revive
err := invoker(ctx, method, req, reply, cc, append(opts, grpc.Peer(&p))...)
if err != nil {
fmt.Printf("%-50s[%s] => %s\n", color.RedString(prefix), time.Now().Format("04:05.000"), color.RedString("Erro: "+err.Error())) // nolint
fmt.Printf("%-50s[%s] => %s\n", color.RedString(prefix), time.Now().Format("04:05.000"), color.RedString("Erro: "+err.Error())) // nolint:revive
} else {
fmt.Printf("%-50s[%s] => %s\n", color.GreenString(prefix), time.Now().Format("04:05.000"), color.GreenString("Recv: "+xstring.Json(reply))) // nolint
fmt.Printf("%-50s[%s] => %s\n", color.GreenString(prefix), time.Now().Format("04:05.000"), color.GreenString("Recv: "+xstring.Json(reply))) // nolint:revive
}

return err
Expand Down

0 comments on commit 54cc234

Please sign in to comment.