From 5b684c168fcda6a9393c41f47de8470f2671632b Mon Sep 17 00:00:00 2001 From: Razvan Dimescu Date: Sun, 29 Mar 2026 08:55:07 +0300 Subject: [PATCH] style: add InflightMap type alias for clippy Co-Authored-By: Claude Opus 4.6 (1M context) --- src/ctx.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ctx.rs b/src/ctx.rs index c102ab9..ef46508 100644 --- a/src/ctx.rs +++ b/src/ctx.rs @@ -10,6 +10,8 @@ use rustls::ServerConfig; use tokio::net::UdpSocket; use tokio::sync::broadcast; +type InflightMap = HashMap<(String, QueryType), broadcast::Sender>>; + use crate::blocklist::BlocklistStore; use crate::buffer::BytePacketBuffer; use crate::cache::{DnsCache, DnssecStatus}; @@ -55,7 +57,7 @@ pub struct ServerCtx { pub upstream_mode: UpstreamMode, pub root_hints: Vec, pub srtt: RwLock, - pub inflight: Mutex>>>, + pub inflight: Mutex, pub dnssec_enabled: bool, pub dnssec_strict: bool, } @@ -430,7 +432,7 @@ fn is_special_use_domain(qname: &str) -> bool { } struct InflightGuard<'a> { - inflight: &'a Mutex>>>, + inflight: &'a Mutex, key: (String, QueryType), }