diff --git a/src/pd/Client.cc b/src/pd/Client.cc index 4aef4e95..ff3b2d24 100644 --- a/src/pd/Client.cc +++ b/src/pd/Client.cc @@ -78,7 +78,7 @@ std::shared_ptr Client::getOrCreateGRPCConn(const std::str } // TODO Check Auth Poco::URI uri(addr); - auto client_ptr = std::make_shared(uri.getHost() + ":" + std::to_string(uri.getPort()), config); + auto client_ptr = std::make_shared(uri.getAuthority(), config); channel_map[addr] = client_ptr; return client_ptr;