use cached base64 ident hash

This commit is contained in:
hakunamtu 2019-03-03 21:04:19 +03:00
parent 6c79ccd1dc
commit ad437add24

View file

@ -576,7 +576,7 @@ namespace data
if (it.second->IsUnreachable ()) if (it.second->IsUnreachable ())
{ {
// delete RI file // delete RI file
m_Storage.Remove (it.first.ToBase64 ()); m_Storage.Remove (it.second->GetIdentHashBase64 ());
deletedCount++; deletedCount++;
if (total - deletedCount < NETDB_MIN_ROUTERS) checkForExpiration = false; if (total - deletedCount < NETDB_MIN_ROUTERS) checkForExpiration = false;
} }