summaryrefslogtreecommitdiffstats
path: root/vespaclient
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-10-08 08:36:58 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-10-08 08:36:58 +0000
commitaf061e49b017d10f2b162d80b9c5228285c0ef11 (patch)
tree64a43d89ab272ff07cc34df5d861cc9c9e761e43 /vespaclient
parente0956c74c9d0a756140b0cf62468a813cb6d9fd0 (diff)
Use vespalib::Lock -> std::mutex
Diffstat (limited to 'vespaclient')
-rw-r--r--vespaclient/src/vespa/vespaclient/vdsstates/statesapp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vespaclient/src/vespa/vespaclient/vdsstates/statesapp.cpp b/vespaclient/src/vespa/vespaclient/vdsstates/statesapp.cpp
index 082aa83c3da..9393562bf28 100644
--- a/vespaclient/src/vespa/vespaclient/vdsstates/statesapp.cpp
+++ b/vespaclient/src/vespa/vespaclient/vdsstates/statesapp.cpp
@@ -254,11 +254,11 @@ struct StateApp : public FastOS_Application {
std::unique_ptr<slobrok::api::MirrorAPI> slobrok;
if (_options._slobrokConnectionSpec == "") {
config::ConfigUri config(_options._slobrokConfigId);
- slobrok.reset(new slobrok::api::MirrorAPI(supervisor.supervisor(), config));
+ slobrok = std::make_unique<slobrok::api::MirrorAPI>(supervisor.supervisor(), slobrok::ConfiguratorFactory(config));
} else {
std::vector<std::string> specList;
specList.push_back(_options._slobrokConnectionSpec);
- slobrok.reset(new slobrok::api::MirrorAPI(supervisor.supervisor(), specList));
+ slobrok = std::make_unique<slobrok::api::MirrorAPI>(supervisor.supervisor(), slobrok::ConfiguratorFactory(specList));
}
LOG(debug, "Waiting for slobrok data to be available.");
uint64_t startTime = getTimeInMillis();