summaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/peer-check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'configd/src/apps/sentinel/peer-check.cpp')
-rw-r--r--configd/src/apps/sentinel/peer-check.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/configd/src/apps/sentinel/peer-check.cpp b/configd/src/apps/sentinel/peer-check.cpp
index 841d32c9631..60c3d9c96c9 100644
--- a/configd/src/apps/sentinel/peer-check.cpp
+++ b/configd/src/apps/sentinel/peer-check.cpp
@@ -10,7 +10,7 @@ using vespalib::make_string_short::fmt;
namespace config::sentinel {
-PeerCheck::PeerCheck(StatusCallback &callback, const std::string &host, int port, FRT_Supervisor &orb)
+PeerCheck::PeerCheck(StatusCallback &callback, const std::string &host, int port, FRT_Supervisor &orb, int timeout_ms)
: _callback(callback),
_hostname(host),
_portnum(port),
@@ -21,7 +21,7 @@ PeerCheck::PeerCheck(StatusCallback &callback, const std::string &host, int port
_target = orb.GetTarget(spec.c_str());
_req = orb.AllocRPCRequest();
_req->SetMethodName("frt.rpc.ping");
- _target->InvokeAsync(_req, 0.500, this);
+ _target->InvokeAsync(_req, timeout_ms * 0.001, this);
}
PeerCheck::~PeerCheck() {