Skip to content
Permalink
Browse files
fix baidu_rpc_protocol.cpp error variable name
  • Loading branch information
serverglen committed Jun 30, 2021
1 parent 10a9c85 commit 5f6b916ddaebf2ceca99ed301b86e739a698cb15
Showing 1 changed file with 4 additions and 4 deletions.
@@ -462,8 +462,8 @@ void ProcessRpcRequest(InputMessageBase* msg_base) {
meta.attachment_size(), reqsize);
break;
}
int att_size = reqsize - meta.attachment_size();
msg->payload.cutn(&req_buf, att_size);
int body_without_attachment_size = reqsize - meta.attachment_size();
msg->payload.cutn(&req_buf, body_without_attachment_size);
req_buf_ptr = &req_buf;
cntl->request_attachment().swap(msg->payload);
}
@@ -595,8 +595,8 @@ void ProcessRpcResponse(InputMessageBase* msg_base) {
meta.attachment_size(), res_size);
break;
}
int att_size = res_size - meta.attachment_size();
msg->payload.cutn(&res_buf, att_size);
int body_without_attachment_size = res_size - meta.attachment_size();
msg->payload.cutn(&res_buf, body_without_attachment_size);
res_buf_ptr = &res_buf;
cntl->response_attachment().swap(msg->payload);
}

0 comments on commit 5f6b916

Please sign in to comment.