Skip to content

Commit

Permalink
[dns]fix a switch statement syntax typo (envoyproxy#34311)
Browse files Browse the repository at this point in the history
* fix a switch statement sytax typo

Signed-off-by: Renjie Tang <[email protected]>

* remove white space

Signed-off-by: Renjie Tang <[email protected]>

---------

Signed-off-by: Renjie Tang <[email protected]>
  • Loading branch information
RenjieTang authored May 28, 2024
1 parent d9ef487 commit fd1d7ed
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ GetAddrInfoDnsResolver::processResponse(const PendingQuery& query,
}

std::list<DnsResponse> final_results;
switch (query.dns_lookup_family_)
case DnsLookupFamily::All: {
switch (query.dns_lookup_family_) {
case DnsLookupFamily::All:
final_results = std::move(v4_results);
final_results.splice(final_results.begin(), v6_results);
break;
Expand All @@ -98,10 +98,10 @@ GetAddrInfoDnsResolver::processResponse(const PendingQuery& query,
break;
}

ENVOY_LOG(debug, "getaddrinfo resolution complete for host '{}': {}", query.dns_name_,
accumulateToString<Network::DnsResponse>(final_results, [](const auto& dns_response) {
return dns_response.addrInfo().address_->asString();
}));
ENVOY_LOG(debug, "getaddrinfo resolution complete for host '{}': {}", query.dns_name_,
accumulateToString<Network::DnsResponse>(final_results, [](const auto& dns_response) {
return dns_response.addrInfo().address_->asString();
}));

return std::make_pair(ResolutionStatus::Success, final_results);
}
Expand Down

0 comments on commit fd1d7ed

Please sign in to comment.