From b42663061303dfcaa921b826fb372599f0a08438 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Wed, 25 Sep 2019 16:07:03 -0700 Subject: [PATCH] Clarify comment in decoder state. --- zebra-network/src/protocol/codec.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zebra-network/src/protocol/codec.rs b/zebra-network/src/protocol/codec.rs index 029310f89..a1ffeed6e 100644 --- a/zebra-network/src/protocol/codec.rs +++ b/zebra-network/src/protocol/codec.rs @@ -285,7 +285,8 @@ impl Decoder for Codec { } // Now that we know we have the full body, split off the body, - // and reset the decoder state for the next message. + // and reset the decoder state for the next message. Otherwise + // we will attempt to read the next header as the current body. let body = src.split_to(body_len); self.state = DecodeState::Head;