From 252b686fd8814b34425e0de02119ff84c5fc0e18 Mon Sep 17 00:00:00 2001 From: samur Date: Fri, 29 Jan 2021 08:58:49 +0300 Subject: [PATCH] Change timeout type. --- etcd/Client.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etcd/Client.hpp b/etcd/Client.hpp index 2cb4a7f..6bc7d77 100644 --- a/etcd/Client.hpp +++ b/etcd/Client.hpp @@ -43,7 +43,7 @@ namespace etcd * @param load_balancer is the load balance strategy, can be one of round_robin/pick_first/grpclb/xds. */ Client(std::string const & etcd_url, - const unsigned int& timeout = std::numeric_limits::max(), + const long& timeout = std::numeric_limits::max(), std::string const & load_balancer = "round_robin"); /** @@ -59,7 +59,7 @@ namespace etcd Client(std::string const & etcd_url, std::string const & username, std::string const & password, - const unsigned int& timeout = std::numeric_limits::max(), + const long& timeout = std::numeric_limits::max(), std::string const & load_balancer = "round_robin"); /**