From 625874f2c434501d718944e2729518d6d37677db Mon Sep 17 00:00:00 2001 From: Kirill Fomichev Date: Thu, 28 Nov 2024 15:32:56 -0500 Subject: [PATCH] geyser: use default compression as gzip and zstd (#475) --- CHANGELOG.md | 1 + Cargo.lock | 10 +++++----- deny.toml | 17 ++++++++--------- yellowstone-grpc-geyser/config.json | 4 ++-- yellowstone-grpc-geyser/src/config.rs | 2 +- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f3c24dc..317d7c72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Cargo.lock b/Cargo.lock index a0cd5364..074721b1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3117,9 +3117,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.17" +version = "0.23.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f1a745511c54ba6d4465e8d5dfbd81b45791756de28d4981af70d6dca128f1e" +checksum = "934b404430bb06b3fae2cba809eb45a1ab1aecd64491213d7c3301b88393f8d1" dependencies = [ "log", "once_cell", @@ -4270,7 +4270,7 @@ version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" dependencies = [ - "rustls 0.23.17", + "rustls 0.23.19", "rustls-pki-types", "tokio", ] @@ -4561,9 +4561,9 @@ dependencies = [ [[package]] name = "url" -version = "2.5.3" +version = "2.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d157f1b96d14500ffdc1f10ba712e780825526c03d9a49b4d0324b0d9113ada" +checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" dependencies = [ "form_urlencoded", "idna", diff --git a/deny.toml b/deny.toml index 1da0d6e4..0ec726b7 100644 --- a/deny.toml +++ b/deny.toml @@ -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", ] diff --git a/yellowstone-grpc-geyser/config.json b/yellowstone-grpc-geyser/config.json index 69a8862e..5f347210 100644 --- a/yellowstone-grpc-geyser/config.json +++ b/yellowstone-grpc-geyser/config.json @@ -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, diff --git a/yellowstone-grpc-geyser/src/config.rs b/yellowstone-grpc-geyser/src/config.rs index 239d1b59..d03b20fe 100644 --- a/yellowstone-grpc-geyser/src/config.rs +++ b/yellowstone-grpc-geyser/src/config.rs @@ -206,7 +206,7 @@ impl ConfigGrpcCompression { } fn default_compression() -> Vec { - vec![CompressionEncoding::Gzip] + vec![CompressionEncoding::Gzip, CompressionEncoding::Zstd] } }