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:
Diskein 2023-10-06 05:59:06 +02:00 committed by GitHub
parent 47f0d9e032
commit 59635008c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -72,7 +72,7 @@ etcd::KeepAlive::KeepAlive(
std::function<void(std::exception_ptr)> const& handler, int ttl,
int64_t lease_id, std::string const& target_name_override)
: KeepAlive(SyncClient(address, ca, cert, privkey, target_name_override),
ttl, lease_id) {}
handler, ttl, lease_id) {}
etcd::KeepAlive::KeepAlive(
SyncClient const& client,

View File

@ -147,10 +147,9 @@ const std::string strip_and_resolve_addresses(std::string const& address) {
return "ipv4:///" + stripped_address;
}
const bool authenticate(std::shared_ptr<grpc::Channel> const& channel,
std::string const& username,
std::string const& password,
std::string& token_or_message) {
bool authenticate(std::shared_ptr<grpc::Channel> const& channel,
std::string const& username, std::string const& password,
std::string& token_or_message) {
// run a round of auth
auto auth_stub = etcdserverpb::Auth::NewStub(channel);
ClientContext context;