summaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/report-connectivity.cpp
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2021-06-11 14:34:51 +0000
committerArne Juul <arnej@verizonmedia.com>2021-06-11 14:42:11 +0000
commitdb8530327e2b5348239925013366665c012381d9 (patch)
tree4c333a3dbaca54f15d9d00119b26c2d89e4f1c13 /configd/src/apps/sentinel/report-connectivity.cpp
parente667cf6c86959fccce07091d97950f43f418b5c9 (diff)
cleanup and add lock
Diffstat (limited to 'configd/src/apps/sentinel/report-connectivity.cpp')
-rw-r--r--configd/src/apps/sentinel/report-connectivity.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/configd/src/apps/sentinel/report-connectivity.cpp b/configd/src/apps/sentinel/report-connectivity.cpp
index eceb2cf64aa..c1e519a4a9a 100644
--- a/configd/src/apps/sentinel/report-connectivity.cpp
+++ b/configd/src/apps/sentinel/report-connectivity.cpp
@@ -15,7 +15,6 @@ namespace config::sentinel {
ReportConnectivity::ReportConnectivity(FRT_RPCRequest *req, int timeout_ms, FRT_Supervisor &orb, ModelOwner &modelOwner)
: _parentRequest(req),
- _orb(orb),
_checks()
{
auto cfg = modelOwner.getModelConfig();
@@ -24,7 +23,7 @@ ReportConnectivity::ReportConnectivity(FRT_RPCRequest *req, int timeout_ms, FRT_
LOG(debug, "making connectivity report for %zd peers", map.size());
_remaining = map.size();
for (const auto & [ hostname, port ] : map) {
- _checks.emplace_back(std::make_unique<PeerCheck>(*this, hostname, port, _orb, timeout_ms));
+ _checks.emplace_back(std::make_unique<PeerCheck>(*this, hostname, port, orb, timeout_ms));
}
} else {
_parentRequest->SetError(FRTE_RPC_METHOD_FAILED, "failed getting model config");