Skip to content

Commit 195ace4

Browse files
committed
fix: update the frame size more cleanly
Signed-off-by: ljedrz <ljedrz@gmail.com>
1 parent cfc4d33 commit 195ace4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node/messages/src/helpers/codec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub struct MessageCodec<N: Network> {
3636
impl<N: Network> MessageCodec<N> {
3737
/// Increases the maximum permitted message size post-handshake.
3838
pub fn update_max_message_len(&mut self) {
39-
self.codec = LengthDelimitedCodec::builder().max_frame_length(MAXIMUM_MESSAGE_SIZE).little_endian().new_codec();
39+
self.codec.set_max_frame_length(MAXIMUM_MESSAGE_SIZE);
4040
}
4141
}
4242

0 commit comments

Comments
 (0)