| 618 | } |
| 619 | |
| 620 | void NetDb::Load () |
| 621 | { |
| 622 | // make sure we cleanup netDb from previous attempts |
| 623 | m_RouterInfos.clear (); |
| 624 | m_Floodfills.Clear (); |
| 625 | |
| 626 | uint64_t ts = i2p::util::GetMillisecondsSinceEpoch(); |
| 627 | std::vector<std::string> files; |
| 628 | m_Storage.Traverse(files); |
| 629 | for (const auto& path : files) |
| 630 | LoadRouterInfo (path, ts); |
| 631 | |
| 632 | LogPrint (eLogInfo, "NetDb: ", m_RouterInfos.size(), " routers loaded (", m_Floodfills.GetSize (), " floodfils)"); |
| 633 | } |
| 634 | |
| 635 | void NetDb::SaveUpdated () |
| 636 | { |
nothing calls this directly
no test coverage detected