Skip to content

Commit

Permalink
Increase max size when decoding gRPC messages, bump version for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-L2L committed Feb 3, 2025
1 parent a781bf3 commit 4cee4eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
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.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ authors = [
edition = "2021"
license-file = "LICENSE.txt"
publish = false
version = "0.11.1"
version = "0.11.2"

[workspace.dependencies]
anyhow = "1.0.72"
Expand Down
5 changes: 4 additions & 1 deletion lib/types/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -896,9 +896,12 @@ pub mod mainchain {
T: super::Transport,
{
pub fn new(inner: T) -> Self {
// 1GB
const MAX_DECODE_MESSAGE_SIZE: usize = 1024 * 1024 * 1024;
Self(generated::validator_service_client::ValidatorServiceClient::<T>::new(
inner,
))
).max_decoding_message_size(MAX_DECODE_MESSAGE_SIZE)
)
}

pub async fn get_block_header_info(
Expand Down

0 comments on commit 4cee4eb

Please sign in to comment.