From 6552a82c7e902100022f355030bc4a321cdd16da Mon Sep 17 00:00:00 2001 From: clemahieu Date: Sat, 11 Sep 2021 21:28:58 +0100 Subject: [PATCH] Removing keepalive callback passed in through start_tcp as unnecessary. --- nano/node/node.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nano/node/node.cpp b/nano/node/node.cpp index aec1c3b65..7cea3f813 100644 --- a/nano/node/node.cpp +++ b/nano/node/node.cpp @@ -45,12 +45,7 @@ void nano::node::keepalive (std::string const & address_a, uint16_t port_a) auto channel (node_l->network.find_channel (endpoint)); if (!channel) { - node_l->network.tcp_channels.start_tcp (endpoint, [node_w] (std::shared_ptr const & channel_a) { - if (auto node_l = node_w.lock ()) - { - node_l->network.send_keepalive (channel_a); - } - }); + node_l->network.tcp_channels.start_tcp (endpoint); } else {