Skip to content

Commit

Permalink
Fixes compiler errors (#254)
Browse files Browse the repository at this point in the history
Co-authored-by: Denis Kalantaevsky <dkalantaevsky@gmail.com>
Co-authored-by: Tao He <sighingnow@gmail.com>
  • Loading branch information
3 people committed Oct 6, 2023
1 parent 47f0d9e commit 5963500
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/KeepAlive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 3 additions & 4 deletions src/SyncClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5963500

Please sign in to comment.