Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
use un-resolved host as client map key (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyu85cn authored Sep 17, 2021
1 parent d617e99 commit b4dd5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/thrift/ThriftClientManager.inl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ std::shared_ptr<ClientType> ThriftClientManager<ClientType>::client(
std::shared_ptr<ClientType> 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;
}

Expand Down

0 comments on commit b4dd5cd

Please sign in to comment.