Skip to content

Commit

Permalink
make size limit public
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Lee <[email protected]>
  • Loading branch information
BusyJay committed Nov 24, 2020
1 parent a083fca commit 8055cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub type SerializeFn<T> = fn(&T, &mut Vec<u8>) -> Result<()>;

/// According to https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md, grpc uses
/// a four bytes to describe the length of a message, so it should not exceed u32::MAX.
const MAX_MESSAGE_SIZE: usize = u32::MAX as usize;
pub const MAX_MESSAGE_SIZE: usize = u32::MAX as usize;

/// Defines how to serialize and deserialize between the specialized type and byte slice.
pub struct Marshaller<T> {
Expand Down

0 comments on commit 8055cc5

Please sign in to comment.