Skip to content

Commit

Permalink
Removing unused variable. (#3440)
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Sep 7, 2021
1 parent a09a3a3 commit 7337ea5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions nano/node/transport/tcp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ nano::transport::channel_tcp::~channel_tcp ()
{
socket_l->close ();
}
// Remove response server
if (auto response_server_l = response_server.lock ())
{
response_server_l->stop ();
}
}
}

Expand Down
1 change: 0 additions & 1 deletion nano/node/transport/tcp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ namespace transport
return &node == &other_a.node && socket.lock () == other_a.socket.lock ();
}
std::weak_ptr<nano::socket> socket;
std::weak_ptr<nano::bootstrap_server> response_server;
/* Mark for temporary channels. Usually remote ports of these channels are ephemeral and received from incoming connections to server.
If remote part has open listening port, temporary channel will be replaced with direct connection to listening port soon. But if other side is behing NAT or firewall this connection can be pemanent. */
std::atomic<bool> temporary{ false };
Expand Down

0 comments on commit 7337ea5

Please sign in to comment.