Skip to content
This repository was archived by the owner on Jun 4, 2023. It is now read-only.

Commit 889755b

Browse files
bchaliospapazof
authored andcommitted
Temporarily increase the size of allowed transfers
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 <[email protected]>
1 parent 5d1d5dc commit 889755b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/proto.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use protobuf::{CodedInputStream, CodedOutputStream};
1717
use crate::error::{get_rpc_status, Error, Result as TtResult};
1818

1919
pub const MESSAGE_HEADER_LENGTH: usize = 10;
20-
pub const MESSAGE_LENGTH_MAX: usize = 4 << 20;
20+
pub const MESSAGE_LENGTH_MAX: usize = 1 << 30;
2121

2222
pub const MESSAGE_TYPE_REQUEST: u8 = 0x1;
2323
pub const MESSAGE_TYPE_RESPONSE: u8 = 0x2;

0 commit comments

Comments
 (0)