From b4dd5cd25d6f05f633c3cc780ff67ba6a2ebb6c6 Mon Sep 17 00:00:00 2001 From: "lionel.liu@vesoft.com" <52276794+liuyu85cn@users.noreply.github.com> Date: Fri, 17 Sep 2021 13:35:22 +0800 Subject: [PATCH] use un-resolved host as client map key (#615) --- src/common/thrift/ThriftClientManager.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/thrift/ThriftClientManager.inl b/src/common/thrift/ThriftClientManager.inl index bcbb2e439..97d0c31ca 100644 --- a/src/common/thrift/ThriftClientManager.inl +++ b/src/common/thrift/ThriftClientManager.inl @@ -83,7 +83,7 @@ std::shared_ptr ThriftClientManager::client( std::shared_ptr client( new ClientType(std::move(headerClientChannel)), [evb](auto* p) { evb->runImmediatelyOrRunInEventBaseThreadAndWait([p] { delete p; }); }); - clientMap_->emplace(std::make_pair(resolved, evb), client); + clientMap_->emplace(std::make_pair(host, evb), client); return client; }