aboutsummaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/report-connectivity.h
diff options
context:
space:
mode:
Diffstat (limited to 'configd/src/apps/sentinel/report-connectivity.h')
-rw-r--r--configd/src/apps/sentinel/report-connectivity.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/configd/src/apps/sentinel/report-connectivity.h b/configd/src/apps/sentinel/report-connectivity.h
index d44e4eb5549..d28368eca6c 100644
--- a/configd/src/apps/sentinel/report-connectivity.h
+++ b/configd/src/apps/sentinel/report-connectivity.h
@@ -18,14 +18,14 @@ namespace config::sentinel {
class ReportConnectivity;
-struct ConnectivityCheckResult : StatusCallback {
+struct SinglePing : StatusCallback {
ReportConnectivity& parent;
std::string peerName;
int peerPort;
std::string status;
std::unique_ptr<PeerCheck> check;
- ConnectivityCheckResult(ReportConnectivity& owner, const std::string &hostname, int port)
+ SinglePing(ReportConnectivity& owner, const std::string &hostname, int port)
: parent(owner),
peerName(hostname),
peerPort(port),
@@ -33,10 +33,10 @@ struct ConnectivityCheckResult : StatusCallback {
check(nullptr)
{}
- ConnectivityCheckResult(ConnectivityCheckResult &&) = default;
- ConnectivityCheckResult(const ConnectivityCheckResult &) = default;
+ SinglePing(SinglePing &&) = default;
+ SinglePing(const SinglePing &) = default;
- virtual ~ConnectivityCheckResult();
+ virtual ~SinglePing();
void startCheck(FRT_Supervisor &orb);
void returnStatus(bool ok) override;
};
@@ -54,7 +54,7 @@ private:
void finish() const;
FRT_RPCRequest *_parentRequest;
FRT_Supervisor &_orb;
- std::vector<ConnectivityCheckResult> _result;
+ std::vector<SinglePing> _result;
config::ConfigFetcher _configFetcher;
std::mutex _lock;
size_t _remaining;