From 202fa39a42e6340ccf7ed7fc4363b65bce382129 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Fri, 23 Jul 2021 01:22:29 +0700 Subject: [PATCH] Fix comments for some `MessageReader` contants --- src/link/mod.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/link/mod.rs b/src/link/mod.rs index 87d8533..d10f93a 100644 --- a/src/link/mod.rs +++ b/src/link/mod.rs @@ -10,12 +10,10 @@ const UE_RECEIVED_FIELD_SIZE: usize = 4; // Defines how many bytes is used to encode "LENGTH" field, describing length of // next JSON message from ue-server const UE_LENGTH_FIELD_SIZE: usize = 4; -// Value indicating that next byte sequence from ue-server reports amount of bytes received by -// that server so far. Value itself is arbitrary. - +// Arbitrary value indicating that next byte sequence from ue-server reports amount of bytes +// received by that server so far. const HEAD_UE_RECEIVED: u8 = 85; -// Value indicating that next byte sequence from ue-server contains JSON message. -// Value itself is arbitrary. +// Arbitrary value indicating that next byte sequence from ue-server contains JSON message. const HEAD_UE_MESSAGE: u8 = 42; // Maximum allowed size of JSON message sent from ue-server. const MAX_UE_MESSAGE_LENGTH: usize = 25 * 1024 * 1024;