Files
comaps/storage/pinger.hpp
Konstantin Pastbin ec1d2e6c82 [core] Add more logging to the downloader
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025-07-07 07:21:53 +02:00

18 lines
384 B
C++

#pragma once
#include "platform/safe_callback.hpp"
#include <string>
#include <vector>
namespace storage
{
class Pinger
{
public:
using Endpoints = std::vector<std::string>;
// Pings all endpoints and a returns latency-sorted list of available ones. Works synchronously.
static Endpoints ExcludeUnavailableAndSortEndpoints(Endpoints const & urls);
};
} // namespace storage