Skip to content

Commit b3e1bae

Browse files
authored
Merge pull request #4995 from namada-net/tiago/accept-encoding-masp-client
Accept zstd compressed data from MASP indexer
2 parents dd7887e + 21d45a6 commit b3e1bae

File tree

4 files changed

+36
-1
lines changed

4 files changed

+36
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Accept zstd compressed data from MASP indexer.
2+
([\#4995](https://github.com/namada-net/namada/pull/4995))

Cargo.lock

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ rand = {version = "0.8", default-features = false}
218218
rand_core = {version = "0.6", default-features = false}
219219
rayon = "1.5"
220220
regex = "1.10"
221-
reqwest = { version = "0.12", features = ["json"] }
221+
reqwest = { version = "0.12", features = ["json", "zstd"] }
222222
ripemd = "0.1"
223223
rlimit = "0.10"
224224
rocksdb = {version = "0.23", features = ["zstd", "bindgen-runtime"], default-features = false}

crates/apps_lib/src/client/masp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ pub async fn syncing<
173173
let client = reqwest::Client::builder()
174174
.connect_timeout(Duration::from_secs(60))
175175
.user_agent(MASP_INDEXER_CLIENT_USER_AGENT)
176+
.zstd(true)
176177
.build()
177178
.map_err(|err| {
178179
Error::Other(format!("Failed to build http client: {err}"))

0 commit comments

Comments
 (0)