summaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/config-handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'configd/src/apps/sentinel/config-handler.cpp')
-rw-r--r--configd/src/apps/sentinel/config-handler.cpp9
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();