Fixes compiler errors (#254)
Co-authored-by: Denis Kalantaevsky <dkalantaevsky@gmail.com> Co-authored-by: Tao He <sighingnow@gmail.com>
This commit is contained in:
parent
47f0d9e032
commit
59635008c0
|
|
@ -72,7 +72,7 @@ etcd::KeepAlive::KeepAlive(
|
||||||
std::function<void(std::exception_ptr)> const& handler, int ttl,
|
std::function<void(std::exception_ptr)> const& handler, int ttl,
|
||||||
int64_t lease_id, std::string const& target_name_override)
|
int64_t lease_id, std::string const& target_name_override)
|
||||||
: KeepAlive(SyncClient(address, ca, cert, privkey, target_name_override),
|
: KeepAlive(SyncClient(address, ca, cert, privkey, target_name_override),
|
||||||
ttl, lease_id) {}
|
handler, ttl, lease_id) {}
|
||||||
|
|
||||||
etcd::KeepAlive::KeepAlive(
|
etcd::KeepAlive::KeepAlive(
|
||||||
SyncClient const& client,
|
SyncClient const& client,
|
||||||
|
|
|
||||||
|
|
@ -147,9 +147,8 @@ const std::string strip_and_resolve_addresses(std::string const& address) {
|
||||||
return "ipv4:///" + stripped_address;
|
return "ipv4:///" + stripped_address;
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool authenticate(std::shared_ptr<grpc::Channel> const& channel,
|
bool authenticate(std::shared_ptr<grpc::Channel> const& channel,
|
||||||
std::string const& username,
|
std::string const& username, std::string const& password,
|
||||||
std::string const& password,
|
|
||||||
std::string& token_or_message) {
|
std::string& token_or_message) {
|
||||||
// run a round of auth
|
// run a round of auth
|
||||||
auto auth_stub = etcdserverpb::Auth::NewStub(channel);
|
auto auth_stub = etcdserverpb::Auth::NewStub(channel);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue