diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-06-11 14:34:51 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-06-11 14:42:11 +0000 |
commit | db8530327e2b5348239925013366665c012381d9 (patch) | |
tree | 4c333a3dbaca54f15d9d00119b26c2d89e4f1c13 /configd/src/apps/sentinel/report-connectivity.cpp | |
parent | e667cf6c86959fccce07091d97950f43f418b5c9 (diff) |
cleanup and add lock
Diffstat (limited to 'configd/src/apps/sentinel/report-connectivity.cpp')
-rw-r--r-- | configd/src/apps/sentinel/report-connectivity.cpp | 3 |
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"); |