Skip to content

Commit 7a03fa4

Browse files
authored
fix(hubble): allow 100MB http response size (#3833)
2 parents f7171f1 + bf3b6ae commit 7a03fa4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/cometbft-rpc/src/lib.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ impl Client {
6666

6767
ClientInner::Ws(client)
6868
}
69-
Some(("http" | "https", _)) => {
70-
ClientInner::Http(HttpClientBuilder::default().build(url)?)
71-
}
69+
Some(("http" | "https", _)) => ClientInner::Http(
70+
HttpClientBuilder::default()
71+
.max_response_size(100 * 1024 * 1024)
72+
.build(url)?,
73+
),
7274
_ => return Err(JsonRpcError::Custom(format!("invalid url {url}"))),
7375
};
7476

0 commit comments

Comments
 (0)