Skip to content

Commit

Permalink
Resolve the bug without encode batch flag when send batch message #152
Browse files Browse the repository at this point in the history
Resolve the bug without encode batch flag when send batch message
  • Loading branch information
jonnxu authored Jun 18, 2019
2 parents 5689607 + b87f753 commit 390bfe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/protocol/CommandHeader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void SendMessageRequestHeader::Encode(Json::Value& outData) {
outData["properties"] = properties;
outData["reconsumeTimes"] = UtilAll::to_string(reconsumeTimes);
outData["unitMode"] = UtilAll::to_string(unitMode);
// outData["batch"] = batch;
outData["batch"] = UtilAll::to_string(batch);
}

int SendMessageRequestHeader::getReconsumeTimes() {
Expand Down Expand Up @@ -106,7 +106,7 @@ void SendMessageRequestHeader::SetDeclaredFieldOfCommandHeader(map<string, strin
requestMap.insert(pair<string, string>("properties", properties));
requestMap.insert(pair<string, string>("reconsumeTimes", UtilAll::to_string(reconsumeTimes)));
requestMap.insert(pair<string, string>("unitMode", UtilAll::to_string(unitMode)));
// requestMap.insert(pair<string, string>("batch", UtilAll::to_string(batch)));
requestMap.insert(pair<string, string>("batch", UtilAll::to_string(batch)));
}

//<!************************************************************************
Expand Down

0 comments on commit 390bfe6

Please sign in to comment.