From af061e49b017d10f2b162d80b9c5228285c0ef11 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Thu, 8 Oct 2020 08:36:58 +0000 Subject: Use vespalib::Lock -> std::mutex --- vespaclient/src/vespa/vespaclient/vdsstates/statesapp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vespaclient') 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; if (_options._slobrokConnectionSpec == "") { config::ConfigUri config(_options._slobrokConfigId); - slobrok.reset(new slobrok::api::MirrorAPI(supervisor.supervisor(), config)); + slobrok = std::make_unique(supervisor.supervisor(), slobrok::ConfiguratorFactory(config)); } else { std::vector specList; specList.push_back(_options._slobrokConnectionSpec); - slobrok.reset(new slobrok::api::MirrorAPI(supervisor.supervisor(), specList)); + slobrok = std::make_unique(supervisor.supervisor(), slobrok::ConfiguratorFactory(specList)); } LOG(debug, "Waiting for slobrok data to be available."); uint64_t startTime = getTimeInMillis(); -- cgit v1.2.3