]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix formatting, ignore complexity for now
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 9 Oct 2025 15:27:30 +0000 (17:27 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 9 Oct 2025 15:27:30 +0000 (17:27 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist.cc

index 06d32ae974807ca6c4bc6e5efc31a66009a12372..6306d91b990fd21e65a82cf52fa8e2ce5e963e21 100644 (file)
@@ -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<DownstreamState>& 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;