From 324345859328a5db8a525b91cb841e1c45fc57c6 Mon Sep 17 00:00:00 2001 From: Zhigao Tong Date: Fri, 1 Jul 2022 13:49:55 +0800 Subject: [PATCH] Update Client.cc --- src/pd/Client.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;