1 parent cfc4d33 commit 195ace4Copy full SHA for 195ace4
node/messages/src/helpers/codec.rs
@@ -36,7 +36,7 @@ pub struct MessageCodec<N: Network> {
36
impl<N: Network> MessageCodec<N> {
37
/// Increases the maximum permitted message size post-handshake.
38
pub fn update_max_message_len(&mut self) {
39
- self.codec = LengthDelimitedCodec::builder().max_frame_length(MAXIMUM_MESSAGE_SIZE).little_endian().new_codec();
+ self.codec.set_max_frame_length(MAXIMUM_MESSAGE_SIZE);
40
}
41
42
0 commit comments