Skip to content

Commit

Permalink
geyser: use default compression as gzip and zstd (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid authored Nov 28, 2024
1 parent 91c14bd commit d9aa2ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The minor version will be incremented upon a breaking change and the patch versi
### Features

- proto: add tonic feature ([#474](https://github.com/rpcpool/yellowstone-grpc/pull/474))
- geyser: use default compression as gzip and zstd ([#475](https://github.com/rpcpool/yellowstone-grpc/pull/475))

### Breaking

Expand Down
4 changes: 2 additions & 2 deletions yellowstone-grpc-geyser/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"key_path": ""
},
"compression": {
"accept": ["gzip"],
"send": ["gzip"]
"accept": ["gzip", "zstd"],
"send": ["gzip", "zstd"]
},
"max_decoding_message_size": "4_194_304",
"snapshot_plugin_channel_capacity": null,
Expand Down
2 changes: 1 addition & 1 deletion yellowstone-grpc-geyser/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ impl ConfigGrpcCompression {
}

fn default_compression() -> Vec<CompressionEncoding> {
vec![CompressionEncoding::Gzip]
vec![CompressionEncoding::Gzip, CompressionEncoding::Zstd]
}
}

Expand Down

0 comments on commit d9aa2ef

Please sign in to comment.