From: Remi Gacogne Date: Thu, 9 Oct 2025 15:27:30 +0000 (+0200) Subject: dnsdist: Fix formatting, ignore complexity for now X-Git-Tag: rec-5.4.0-alpha1~191^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e145d2149f9cd2d72ee76768a04815dab01f627;p=thirdparty%2Fpdns.git dnsdist: Fix formatting, ignore complexity for now Signed-off-by: Remi Gacogne --- diff --git a/pdns/dnsdistdist/dnsdist.cc b/pdns/dnsdistdist/dnsdist.cc index 06d32ae974..6306d91b99 100644 --- a/pdns/dnsdistdist/dnsdist.cc +++ b/pdns/dnsdistdist/dnsdist.cc @@ -1431,9 +1431,10 @@ static ServerPolicy::SelectedBackend selectBackendForOutgoingQuery(DNSQuestion& return policy.getSelectedBackend(servers, dnsQuestion); } +// NOLINTNEXTLINE(readability-function-cognitive-complexity): refactoring will be done in https://github.com/PowerDNS/pdns/pull/16124 ProcessQueryResult processQueryAfterRules(DNSQuestion& dnsQuestion, std::shared_ptr& outgoingBackend) { - const auto sendAnswer = [](DNSQuestion& dnsQ) -> ProcessQueryResult{ + const auto sendAnswer = [](DNSQuestion& dnsQ) -> ProcessQueryResult { ++dnsdist::metrics::g_stats.responses; ++dnsQ.ids.cs->responses; return ProcessQueryResult::SendAnswer;