Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Remove length data from message
Browse files Browse the repository at this point in the history
Part of fix for https://jira.hyperledger.org/browse/STL-1707

Signed-off-by: Will Ryan <[email protected]>
  • Loading branch information
wi-ry authored and Will Ryan committed Jul 29, 2020
1 parent eb9817f commit 580acd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/message_dispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void MessageDispatcher::ReceiveMessage() {
// Encapsulate the message in a ZMQ message and send to the
// validator
zmqpp::message message;
message.add(msg_data.data(), msg_data.length());
message.add(msg_data.data());
this->server_socket.send(message);

break;
Expand Down Expand Up @@ -229,7 +229,7 @@ void MessageDispatcher::HandleConnectionChange(){
msg.SerializeToString(&msg_data);

zmqpp::message zmsg;
zmsg.add(msg_data.data(), msg_data.length());
zmsg.add(msg_data.data());
this->processing_request_socket.send(zmsg);
}
}
Expand Down

0 comments on commit 580acd3

Please sign in to comment.