use unordered_map for LeaseSets

This commit is contained in:
orignal 2023-04-21 14:54:54 -04:00
parent dc265367dc
commit 5769a41208
2 changed files with 3 additions and 13 deletions

View file

@ -262,17 +262,6 @@ namespace client
return nullptr;
}
}
else
{
auto ls = i2p::data::netdb.FindLeaseSet (ident);
if (ls && !ls->IsExpired ())
{
ls->PopulateLeases (); // since we don't store them in netdb
std::lock_guard<std::mutex> _lock(m_RemoteLeaseSetsMutex);
m_RemoteLeaseSets[ident] = ls;
return ls;
}
}
return nullptr;
}