Removing unused variable. (#3440)

This commit is contained in:
clemahieu 2021-09-07 15:57:51 +01:00 committed by GitHub
commit 7337ea536f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View file

@ -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 ();
}
}
}

View file

@ -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 };