Skip to content

Commit

Permalink
Update Client.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
solotzg authored Jul 1, 2022
1 parent 4bbe6f5 commit 3243458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pd/Client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ std::shared_ptr<Client::PDConnClient> Client::getOrCreateGRPCConn(const std::str
}
// TODO Check Auth
Poco::URI uri(addr);
auto client_ptr = std::make_shared<PDConnClient>(uri.getHost() + ":" + std::to_string(uri.getPort()), config);
auto client_ptr = std::make_shared<PDConnClient>(uri.getAuthority(), config);
channel_map[addr] = client_ptr;

return client_ptr;
Expand Down

0 comments on commit 3243458

Please sign in to comment.