diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-11-19 23:22:55 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-11-20 21:55:01 +0000 |
commit | cf3b20dba22718b533eac6854cde86b6538958af (patch) | |
tree | 9a0e795cd74d2721140c48012f794298dfef7420 /configd/src/apps/sentinel/config-handler.cpp | |
parent | 64b7c822099d7cda921699e380c4d95608a1ab00 (diff) |
FastOS_Time -> std::chrono.
Diffstat (limited to 'configd/src/apps/sentinel/config-handler.cpp')
-rw-r--r-- | configd/src/apps/sentinel/config-handler.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/configd/src/apps/sentinel/config-handler.cpp b/configd/src/apps/sentinel/config-handler.cpp index 19e31755400..3e7b9ef0ea0 100644 --- a/configd/src/apps/sentinel/config-handler.cpp +++ b/configd/src/apps/sentinel/config-handler.cpp @@ -3,10 +3,9 @@ #include "config-handler.h" #include "output-connection.h" -#include <vespa/vespalib/net/simple_metric_snapshot.h> #include <vespa/vespalib/net/socket_address.h> #include <vespa/vespalib/util/exceptions.h> -#include <vespa/fastos/time.h> +#include <vespa/fastos/timestamp.h> #include <string> #include <fcntl.h> #include <sys/wait.h> @@ -121,9 +120,9 @@ ConfigHandler::terminate() } void -ConfigHandler::subscribe(const std::string & configId, uint64_t timeoutMS) +ConfigHandler::subscribe(const std::string & configId, std::chrono::milliseconds timeout) { - _sentinelHandle = _subscriber.subscribe<SentinelConfig>(configId, timeoutMS); + _sentinelHandle = _subscriber.subscribe<SentinelConfig>(configId, timeout); } void @@ -173,7 +172,7 @@ ConfigHandler::doWork() { // Return true if there are any running services, false if not. - if (_subscriber.nextGeneration(0)) { + if (_subscriber.nextGenerationNow()) { doConfigure(); } handleRestarts(); |