summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-04-05 16:17:59 +0200
committerHenning Baldersheim <balder@oath.com>2018-04-05 16:17:59 +0200
commite8f12762299de2e77b8d627803a2634d7ad005ca (patch)
tree1cdd3b4f6db06b23d9ebb46169193b642e3378ba /config
parent34c9a3609d05b640e0595f71fbd5fa87792c688a (diff)
Giving up if it fails constructing the StateServer for a long enough period.
Diffstat (limited to 'config')
-rw-r--r--config/src/vespa/config/helper/configfetcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/src/vespa/config/helper/configfetcher.cpp b/config/src/vespa/config/helper/configfetcher.cpp
index b7e15240255..5a3cdad814e 100644
--- a/config/src/vespa/config/helper/configfetcher.cpp
+++ b/config/src/vespa/config/helper/configfetcher.cpp
@@ -16,7 +16,7 @@ ConfigFetcher::ConfigFetcher(const IConfigContext::SP & context)
}
ConfigFetcher::ConfigFetcher(const SourceSpec & spec)
- : _poller(IConfigContext::SP(new ConfigContext(spec))),
+ : _poller(std::make_shared<ConfigContext>(spec)),
_thread(std::make_unique<vespalib::Thread>(_poller)),
_closed(false),
_started(false)