Skip to content

Commit

Permalink
perf: Remove indentation in REST respones (backport cosmos#16142) (co…
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored and roy-dydx committed Jul 11, 2023
1 parent b64b47c commit 9362fae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -46,6 +46,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (store) [#16067](https://github.com/cosmos/cosmos-sdk/pull/16067) Add local snapshots management commands.
* (server) [#16061](https://github.com/cosmos/cosmos-sdk/pull/16061) Add Comet bootstrap command.
* (x/staking) [#16068](https://github.com/cosmos/cosmos-sdk/pull/16068) Update simulation to allow non-EOA accounts to stake.
* (server) [#16142](https://github.com/cosmos/cosmos-sdk/pull/16142) Remove JSON Indentation from the GRPC to REST gateway's responses. (Saving bandwidth)

### Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion server/api/server.go
Expand Up @@ -57,7 +57,7 @@ func New(clientCtx client.Context, logger log.Logger) *Server {
// Using the gogo/gateway package with the gRPC-Gateway WithMarshaler option fixes the scalar field marshalling issue.
marshalerOption := &gateway.JSONPb{
EmitDefaults: true,
Indent: " ",
Indent: "",
OrigName: true,
AnyResolver: clientCtx.InterfaceRegistry,
}
Expand Down

0 comments on commit 9362fae

Please sign in to comment.