]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Use the QuicheConnection type, as suggested by Otto
authorRemi Gacogne <github@coredump.fr>
Fri, 13 Oct 2023 12:46:33 +0000 (14:46 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Oct 2023 12:46:33 +0000 (14:46 +0200)
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/dnsdistdist/doq.cc

index 7ff7c0b6c8db3ed8ddf799f18645e0d02ba9fee0..9489120191bda6554456b15065cfb423380934ed 100644 (file)
@@ -53,7 +53,7 @@ using QuicheConfig = std::unique_ptr<quiche_config, decltype(&quiche_config_free
 class Connection
 {
 public:
-  Connection(const ComboAddress& peer, std::unique_ptr<quiche_conn, decltype(&quiche_conn_free)>&& conn) :
+  Connection(const ComboAddress& peer, QuicheConnection&& conn) :
     d_peer(peer), d_conn(std::move(conn))
   {
   }