Skip to content

Commit

Permalink
Unused callback
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Apr 1, 2024
1 parent cd3f261 commit ef48944
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nano/node/transport/tcp_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ nano::transport::tcp_listener::~tcp_listener ()
debug_assert (!thread.joinable ());
}

void nano::transport::tcp_listener::start (std::function<bool (std::shared_ptr<nano::transport::socket> const &, boost::system::error_code const &)> callback_a)
void nano::transport::tcp_listener::start ()
{
debug_assert (!thread.joinable ());
debug_assert (!cleanup_thread.joinable ());
Expand All @@ -56,7 +56,7 @@ void nano::transport::tcp_listener::start (std::function<bool (std::shared_ptr<n
throw std::runtime_error (ex.code ().message ());
}

thread = std::thread ([this, callback_a] {
thread = std::thread ([this] {
nano::thread_role::set (nano::thread_role::name::tcp_listener);
try
{
Expand Down
2 changes: 1 addition & 1 deletion nano/node/transport/tcp_listener.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class tcp_listener final
tcp_listener (uint16_t port, nano::node &, std::size_t max_inbound_connections);
~tcp_listener ();

void start (std::function<bool (std::shared_ptr<nano::transport::socket> const &, boost::system::error_code const &)> callback = {});
void start ();
void stop ();

nano::tcp_endpoint endpoint () const;
Expand Down

0 comments on commit ef48944

Please sign in to comment.