File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ pub type SerializeFn<T> = fn(&T, &mut Vec<u8>) -> Result<()>;
8
8
9
9
/// According to https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md, grpc uses
10
10
/// 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 ;
12
12
13
13
/// Defines how to serialize and deserialize between the specialized type and byte slice.
14
14
pub struct Marshaller < T > {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ pub use crate::codec::pb_codec::{de as pb_de, ser as pb_ser};
67
67
pub use crate :: codec:: pr_codec:: { de as pr_de, ser as pr_ser} ;
68
68
69
69
pub use crate :: auth_context:: { AuthContext , AuthProperty , AuthPropertyIter } ;
70
- pub use crate :: codec:: Marshaller ;
70
+ pub use crate :: codec:: { Marshaller , MAX_MESSAGE_SIZE } ;
71
71
pub use crate :: env:: { EnvBuilder , Environment } ;
72
72
pub use crate :: error:: { Error , Result } ;
73
73
pub use crate :: log_util:: redirect_log;
You can’t perform that action at this time.
0 commit comments