mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 05:43:37 +00:00
[core] Add more logging to the downloader
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
6d0c52afcc
commit
ec1d2e6c82
@@ -16,6 +16,8 @@ void MapFilesDownloaderWithPing::GetMetaConfig(MetaConfigCallback const & callba
|
||||
CHECK(!metaConfig.m_serversList.empty(), ());
|
||||
|
||||
// Sort the list of servers by latency.
|
||||
/// @todo(pastk:: actually the sort order is used only in MapFilesDownloader::DownloadAsString()
|
||||
/// to get e.g. countries.txt but this code is not enabled at the moment.
|
||||
auto const sorted = Pinger::ExcludeUnavailableAndSortEndpoints(metaConfig.m_serversList);
|
||||
// Keep the original list if all servers are unavailable.
|
||||
if (!sorted.empty())
|
||||
|
||||
Reference in New Issue
Block a user