perf: Remove indentation in REST respones (#16142)

This commit is contained in:
Dev Ojha
2023-05-13 15:10:31 +00:00
committed by GitHub
parent 92247cb0e9
commit 94dec7a4d6
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ func New(clientCtx client.Context, logger log.Logger, grpcSrv *grpc.Server) *Ser
// Using the gogo/gateway package with the gRPC-Gateway WithMarshaler option fixes the scalar field marshaling issue.
marshalerOption := &gateway.JSONPb{
EmitDefaults: true,
Indent: " ",
Indent: "",
OrigName: true,
AnyResolver: clientCtx.InterfaceRegistry,
}