Skip to content

Commit

Permalink
Fix wrong usage about Poco::URI to support ipv6
Browse files Browse the repository at this point in the history
Signed-off-by: root <[email protected]>
  • Loading branch information
root committed Jul 1, 2022
1 parent 4bbe6f5 commit c0a0429
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 c0a0429

Please sign in to comment.