Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Use string_view for tracking addresses being added to this priority.
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Oddy <jonathan.oddy@transferwise.com>
  • Loading branch information
JonathanO committed Jan 13, 2021
1 parent 4527f05 commit 58da9c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/common/upstream/upstream_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ bool BaseDynamicClusterImpl::updateDynamicHostList(
absl::flat_hash_set<std::string> existing_hosts_for_current_priority(
current_priority_hosts.size());
// Keep track of hosts we're adding (or replacing)
absl::flat_hash_set<std::string> new_hosts_for_current_priority(new_hosts.size());
absl::flat_hash_set<absl::string_view> new_hosts_for_current_priority(new_hosts.size());
HostVector final_hosts;
for (const HostSharedPtr& host : new_hosts) {
if (updated_hosts.count(host->address()->asString())) {
Expand Down

0 comments on commit 58da9c1

Please sign in to comment.