From 8055cc541eee4a32d9841b2d2daad84e282a72d4 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Tue, 24 Nov 2020 16:50:56 +0800 Subject: [PATCH] make size limit public Signed-off-by: Jay Lee --- src/codec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codec.rs b/src/codec.rs index 2f143406b..efc65039d 100644 --- a/src/codec.rs +++ b/src/codec.rs @@ -8,7 +8,7 @@ pub type SerializeFn = fn(&T, &mut Vec) -> 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 {