diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2021-01-19 17:30:40 +0300 |
---|---|---|
committer | Aleksandr Zatsepin <alexander.zatsepin@mail.ru> | 2021-03-30 13:59:46 +0300 |
commit | dd1f3b07eb0fbfabb5c3a0fcf8d90d75d1d3f654 (patch) | |
tree | f112b7bac5c0454c74f0c5c47283ac73a02ed18a | |
parent | 9dfb50b21f138424a039f7ea3f7477c1dc567f1a (diff) |
[ios] DownloadFromAnyUrl is renamed to DownloadFromLastUrl
-rw-r--r-- | storage/background_downloading/downloader_adapter_ios.h | 4 | ||||
-rw-r--r-- | storage/background_downloading/downloader_adapter_ios.mm | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/storage/background_downloading/downloader_adapter_ios.h b/storage/background_downloading/downloader_adapter_ios.h index b5299c4b5c..39e3f7b5ca 100644 --- a/storage/background_downloading/downloader_adapter_ios.h +++ b/storage/background_downloading/downloader_adapter_ios.h @@ -27,8 +27,8 @@ private: void Download(QueuedCountry & queuedCountry) override; // Trying to download mwm from different servers recursively. - void DownloadFromAnyUrl(CountryId const & countryId, std::string const & downloadPath, - std::vector<std::string> const & urls); + void DownloadFromLastUrl(CountryId const & countryId, std::string const & downloadPath, + std::vector<std::string> const & urls); BackgroundDownloaderQueue<std::optional<uint64_t>> m_queue; SubscriberAdapter * m_subscriberAdapter; diff --git a/storage/background_downloading/downloader_adapter_ios.mm b/storage/background_downloading/downloader_adapter_ios.mm index 55cc7cc82e..c7ffb80a7d 100644 --- a/storage/background_downloading/downloader_adapter_ios.mm +++ b/storage/background_downloading/downloader_adapter_ios.mm @@ -87,9 +87,9 @@ void BackgroundDownloaderAdapter::Download(QueuedCountry & queuedCountry) DownloadFromLastUrl(countryId, path, urls); } -void BackgroundDownloaderAdapter::DownloadFromAnyUrl(CountryId const & countryId, - std::string const & downloadPath, - std::vector<std::string> const & urls) +void BackgroundDownloaderAdapter::DownloadFromLastUrl(CountryId const & countryId, + std::string const & downloadPath, + std::vector<std::string> const & urls) { if (urls.empty()) return; @@ -103,7 +103,7 @@ void BackgroundDownloaderAdapter::DownloadFromAnyUrl(CountryId const & countryId if (status == downloader::DownloadStatus::Failed && urls.size() > 1) { urls.pop_back(); - DownloadFromAnyUrl(countryId, downloadPath, urls); + DownloadFromLastUrl(countryId, downloadPath, urls); } else { |