mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:44:15 +00:00
cleanup from some overhead
This commit is contained in:
parent
15b7284a8f
commit
37e4dfc5d5
@ -912,7 +912,6 @@ namespace data
|
|||||||
|
|
||||||
uint8_t randomHash[32];
|
uint8_t randomHash[32];
|
||||||
std::vector<i2p::tunnel::TunnelMessageBlock> msgs;
|
std::vector<i2p::tunnel::TunnelMessageBlock> msgs;
|
||||||
std::set<const RouterInfo *> floodfills;
|
|
||||||
LogPrint (eLogInfo, "NetDb: exploring new ", numDestinations, " routers ...");
|
LogPrint (eLogInfo, "NetDb: exploring new ", numDestinations, " routers ...");
|
||||||
for (int i = 0; i < numDestinations; i++)
|
for (int i = 0; i < numDestinations; i++)
|
||||||
{
|
{
|
||||||
@ -924,9 +923,8 @@ namespace data
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto floodfill = GetClosestFloodfill (randomHash, dest->GetExcludedPeers ());
|
auto floodfill = GetClosestFloodfill (randomHash, dest->GetExcludedPeers ());
|
||||||
if (floodfill && !floodfills.count (floodfill.get ())) // request floodfill only once
|
if (floodfill)
|
||||||
{
|
{
|
||||||
floodfills.insert (floodfill.get ());
|
|
||||||
if (i2p::transport::transports.IsConnected (floodfill->GetIdentHash ()))
|
if (i2p::transport::transports.IsConnected (floodfill->GetIdentHash ()))
|
||||||
throughTunnels = false;
|
throughTunnels = false;
|
||||||
if (throughTunnels)
|
if (throughTunnels)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user