From 09bc30cdc079a6ec5610226ea29c0dfdffc9dd6a Mon Sep 17 00:00:00 2001 From: Kirill Fomichev Date: Thu, 28 Nov 2024 15:13:06 -0500 Subject: [PATCH] geyser: use default compression as gzip and zstd --- CHANGELOG.md | 1 + yellowstone-grpc-geyser/config.json | 4 ++-- yellowstone-grpc-geyser/src/config.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91275fe9..cc986e77 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/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] } }