From: Remi Gacogne Date: Mon, 3 Feb 2025 09:15:30 +0000 (+0100) Subject: dnsdist: Fix formatting and a clang-tidy warning X-Git-Tag: dnsdist-2.0.0-alpha1~128^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd1c0a9ae6db27bca8671d00288c02e099e5f47a;p=thirdparty%2Fpdns.git dnsdist: Fix formatting and a clang-tidy warning --- diff --git a/pdns/dnsdistdist/dnsdist-actions-factory.cc b/pdns/dnsdistdist/dnsdist-actions-factory.cc index a74d8d28b6..c8550f4c9d 100644 --- a/pdns/dnsdistdist/dnsdist-actions-factory.cc +++ b/pdns/dnsdistdist/dnsdist-actions-factory.cc @@ -2364,7 +2364,6 @@ std::shared_ptr getHTTPStatusAction(uint16_t status, PacketBuffer&& b #endif } - std::shared_ptr getLimitTTLResponseAction(uint32_t min, uint32_t max, std::unordered_set types) { return std::shared_ptr(new LimitTTLResponseAction(min, max, std::move(types))); diff --git a/pdns/dnsdistdist/dnsdist-nghttp2.hh b/pdns/dnsdistdist/dnsdist-nghttp2.hh index 043b4977e1..8331759353 100644 --- a/pdns/dnsdistdist/dnsdist-nghttp2.hh +++ b/pdns/dnsdistdist/dnsdist-nghttp2.hh @@ -64,7 +64,7 @@ bool initDoHWorkers(); /* opens a new HTTP/2 connection to the supplied backend (attached to the supplied multiplexer), sends the query, waits for the response to come back or an error to occur then notifies the sender, closing the connection. */ -bool sendH2Query(const std::shared_ptr& ds, std::unique_ptr& mplexer, std::shared_ptr& sender, InternalQuery&& query, bool healthCheck); +bool sendH2Query(const std::shared_ptr& downstream, std::unique_ptr& mplexer, std::shared_ptr& sender, InternalQuery&& query, bool healthCheck); size_t handleH2Timeouts(FDMultiplexer& mplexer, const struct timeval& now); size_t clearH2Connections();