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 committed Nov 28, 2024
1 parent 45e900f commit 625874f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 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
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 8 additions & 9 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@ ignore = [
# Advisory: https://rustsec.org/advisories/RUSTSEC-2022-0093
"RUSTSEC-2022-0093",

# borsh 0.9.3
# borsh 0.10.3
# Advisory: https://rustsec.org/advisories/RUSTSEC-2023-0033
"RUSTSEC-2023-0033",

# proc-macro-error 1.0.4
# Advisory: https://rustsec.org/advisories/RUSTSEC-2024-0370
"RUSTSEC-2024-0370",

# atty 0.2.14
# Advisory: https://rustsec.org/advisories/RUSTSEC-2024-0375
"RUSTSEC-2024-0375",

# instant 0.1.13
# Advisory: https://rustsec.org/advisories/RUSTSEC-2024-0384
"RUSTSEC-2024-0384",

# derivative 2.2.0
# Advisory: https://rustsec.org/advisories/RUSTSEC-2024-0388
"RUSTSEC-2024-0388",
]
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 625874f

Please sign in to comment.