Change timeout type.

This commit is contained in:
samur 2021-01-29 08:58:49 +03:00
parent ed199295f3
commit 252b686fd8
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ namespace etcd
* @param load_balancer is the load balance strategy, can be one of round_robin/pick_first/grpclb/xds. * @param load_balancer is the load balance strategy, can be one of round_robin/pick_first/grpclb/xds.
*/ */
Client(std::string const & etcd_url, Client(std::string const & etcd_url,
const unsigned int& timeout = std::numeric_limits<unsigned int>::max(), const long& timeout = std::numeric_limits<long>::max(),
std::string const & load_balancer = "round_robin"); std::string const & load_balancer = "round_robin");
/** /**
@ -59,7 +59,7 @@ namespace etcd
Client(std::string const & etcd_url, Client(std::string const & etcd_url,
std::string const & username, std::string const & username,
std::string const & password, std::string const & password,
const unsigned int& timeout = std::numeric_limits<unsigned int>::max(), const long& timeout = std::numeric_limits<long>::max(),
std::string const & load_balancer = "round_robin"); std::string const & load_balancer = "round_robin");
/** /**