Remove excessive redirect call on PeerManager

This commit is contained in:
Kirill Fomichev
2020-05-01 10:33:57 +03:00
committed by Nik Bougalis
parent 62a3f33d72
commit dbd25f0e32

View File

@@ -387,7 +387,6 @@ OverlayImpl::makeRedirectResponse(
msg.insert(boost::beast::http::field::connection, "close");
msg.body() = Json::objectValue;
{
auto const result = m_peerFinder->redirect(slot);
Json::Value& ips = (msg.body()["peer-ips"] = Json::arrayValue);
for (auto const& _ : m_peerFinder->redirect(slot))
ips.append(_.address.to_string());