Skip to content

Commit

Permalink
Temporarily increase the size of allowed transfers
Browse files Browse the repository at this point in the history
We need to evaluate what is the best solution here, increasing the
allowed transfer size, or instead solving the problem in the protocol
level but chunking big transfers.

At the moment, we increase the allowed size so that we can make
progress.

Signed-off-by: Babis Chalios <mail@bchalios.io>
  • Loading branch information
bchalios authored and papazof committed Sep 30, 2024
1 parent b9e9dd8 commit c770d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use protobuf::{CodedInputStream, CodedOutputStream};
use crate::error::{get_rpc_status, Error, Result as TtResult};

pub const MESSAGE_HEADER_LENGTH: usize = 10;
pub const MESSAGE_LENGTH_MAX: usize = 4 << 20;
pub const MESSAGE_LENGTH_MAX: usize = 1 << 30;
pub const DEFAULT_PAGE_SIZE: usize = 4 << 10;

pub const MESSAGE_TYPE_REQUEST: u8 = 0x1;
Expand Down

0 comments on commit c770d09

Please sign in to comment.