/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
storage/map_files_downloader_with_ping.cpp
22 строки
516 B
Arsentiy Milchakov
[storage] downloading queue is moved from storage into downloader
13 янв 2020, 12:04
13 янв 2020, 12:04
849ff2d
Код
Авторство
О чём код?
#include "storage/map_files_downloader_with_ping.hpp" #include "storage/pinger.hpp" #include "platform/platform.hpp" #include "base/assert.hpp" namespace storage { void MapFilesDownloaderWithPing::GetServersList(ServersListCallback const & callback) { ASSERT(callback , ()); auto urls = LoadServersList(); CHECK(!urls.empty(), ()); auto const availableEndpoints = Pinger::ExcludeUnavailableEndpoints(urls); callback(availableEndpoints.empty() ? urls : availableEndpoints); } } // namespace storage