Skip to content

Commit 8055cc5

Browse files
committed
make size limit public
Signed-off-by: Jay Lee <BusyJayLee@gmail.com>
1 parent a083fca commit 8055cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub type SerializeFn<T> = fn(&T, &mut Vec<u8>) -> Result<()>;
88

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

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

0 commit comments

Comments
 (0)