From 06e1561aa77ecd93e6cf76f3417d67fe2d65b6fb Mon Sep 17 00:00:00 2001 From: Sigma711 <1979934715@qq.com> Date: Sat, 19 Aug 2023 02:05:15 -0400 Subject: [PATCH] [src] Add comments --- src/rpc_codec.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc_codec.cc b/src/rpc_codec.cc index 440387a1..3b8adb40 100644 --- a/src/rpc_codec.cc +++ b/src/rpc_codec.cc @@ -145,7 +145,7 @@ RpcCodec::ErrorCode RpcCodec::Parse(const char* buffer, int length, ErrorCode error_code = ErrorCode::kNoError; if (ValidateChecksum(buffer, length)) { if (::memcmp(reinterpret_cast(buffer), tag_.data(), - tag_.size()) == 0) { // Parse from the buffer + tag_.size()) == 0) { // Check the tag (the message type) const char* data = buffer + tag_.size(); int32_t data_length = length - kChecksumLength - static_cast(tag_.size());