Payload limit for test

This commit is contained in:
draganrakita 2020-12-17 16:47:02 +01:00 committed by rakita
parent f723e288c3
commit 705bc71593
1 changed files with 3 additions and 0 deletions

View File

@ -44,7 +44,10 @@ pub const MAX_PAYLOAD_SIZE: usize = (1 << 24) - 1;
/// Network responses should try not to go over this limit.
/// This should be lower than MAX_PAYLOAD_SIZE
#[cfg(not(test))]
pub const PAYLOAD_SOFT_LIMIT: usize = (1 << 22) - 1;
#[cfg(test)]
pub const PAYLOAD_SOFT_LIMIT: usize = 100_000;
pub trait GenericSocket: Read + Write {}