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; }