Commit e192f9bc authored by Joseph Noir's avatar Joseph Noir

Fix shadowing warning, remove cout

parent 85e06cd6
......@@ -337,8 +337,8 @@ class acceptor {
*/
using manager_ptr = intrusive_ptr<manager_type>;
acceptor(asio_multiplexer& backend, io_backend& io)
: m_backend(backend), m_accept_fd(io), m_fd(io) {}
acceptor(asio_multiplexer& am, io_backend& io)
: m_backend(am), m_accept_fd(io), m_fd(io) {}
/**
* Returns the `multiplexer` this acceptor belongs to.
......
......@@ -47,7 +47,6 @@ struct asio_supervisor : public multiplexer::supervisor {
default_socket new_tcp_connection(io_backend& backend, const std::string& host,
uint16_t port) {
std::cout << "new_tcp_connection start" << std::endl;
default_socket fd{backend};
using boost::asio::ip::tcp;
tcp::resolver r(fd.get_io_service());
......@@ -62,7 +61,6 @@ default_socket new_tcp_connection(io_backend& backend, const std::string& host,
throw network_error("could not connect to host: " + host +
":" + std::to_string(port));
}
std::cout << "new_tcp_connection end (no exception)" << std::endl;
return fd;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment