MCPcopy Create free account
hub / github.com/comaps/comaps / OnFinishDownloading

Method OnFinishDownloading

libs/storage/storage.cpp:1826–1845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1824}
1825
1826void Storage::OnFinishDownloading()
1827{
1828 if (!m_diffsBeingApplied.empty() || !m_downloader->GetQueue().IsEmpty())
1829 return;
1830
1831 m_justDownloaded.clear();
1832
1833 m_downloadingPolicy->ScheduleRetry(m_failedCountries, [this](CountriesSet const & needReload)
1834 {
1835 for (auto const & country : needReload)
1836 {
1837 NodeStatuses status;
1838 GetNodeStatuses(country, status);
1839 if (status.m_error == NodeErrorCode::NoInetConnection)
1840 RetryDownloadNode(country);
1841 }
1842 });
1843
1844 ApplyPendingCountriesIfAny();
1845}
1846
1847void Storage::OnDiffStatusReceived(diffs::NameDiffInfoMap && diffs)
1848{

Callers

nothing calls this directly

Calls 5

emptyMethod · 0.45
IsEmptyMethod · 0.45
GetQueueMethod · 0.45
clearMethod · 0.45
ScheduleRetryMethod · 0.45

Tested by

no test coverage detected