Skip to content

Commit

Permalink
comment out the debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Comma Device committed Nov 21, 2019
1 parent 4b9c942 commit 84b3af5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions messaging/impl_msgq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void MSGQSubSocket::connect(Context *context, std::string endpoint, std::string

timeout = -1;

std::cout << "MSGQ SUB: " << endpoint << std::endl;
//std::cout << "MSGQ SUB: " << endpoint << std::endl;
}


Expand Down Expand Up @@ -137,7 +137,7 @@ void MSGQPubSocket::connect(Context *context, std::string endpoint){
msgq_new_queue(q, endpoint.c_str(), DEFAULT_SEGMENT_SIZE);
msgq_init_publisher(q);

std::cout << "MSGQ PUB: " << endpoint << std::endl;
//std::cout << "MSGQ PUB: " << endpoint << std::endl;
}

int MSGQPubSocket::sendMessage(Message *message){
Expand Down
4 changes: 2 additions & 2 deletions messaging/impl_zmq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void ZMQSubSocket::connect(Context *context, std::string endpoint, std::string a
full_endpoint = "tcp://" + address + ":";
full_endpoint += std::to_string(get_port(endpoint));

std::cout << "ZMQ SUB: " << full_endpoint << std::endl;
//std::cout << "ZMQ SUB: " << full_endpoint << std::endl;

assert(zmq_connect(sock, full_endpoint.c_str()) == 0);
}
Expand Down Expand Up @@ -109,7 +109,7 @@ void ZMQPubSocket::connect(Context *context, std::string endpoint){
full_endpoint = "tcp://*:";
full_endpoint += std::to_string(get_port(endpoint));

std::cout << "ZMQ PUB: " << full_endpoint << std::endl;
//std::cout << "ZMQ PUB: " << full_endpoint << std::endl;

assert(zmq_bind(sock, full_endpoint.c_str()) == 0);
}
Expand Down

0 comments on commit 84b3af5

Please sign in to comment.