@@ -82,7 +82,7 @@ use crate::util::logger::{Level, Logger, WithContext};
8282use crate::util::errors::APIError;
8383
8484#[cfg(feature = "dnssec")]
85- use crate::onion_message::dns_resolution::{DNSResolverMessage, OMNameResolver} ;
85+ use crate::onion_message::dns_resolution::OMNameResolver;
8686
8787#[cfg(not(c_bindings))]
8888use {
@@ -107,7 +107,7 @@ use core::{cmp, mem};
107107use core::borrow::Borrow;
108108use core::cell::RefCell;
109109use crate::io::Read;
110- use crate::sync::{Arc, FairRwLock, LockHeldState, LockTestExt, Mutex, MutexGuard, RwLock, RwLockReadGuard};
110+ use crate::sync::{Arc, FairRwLock, LockHeldState, LockTestExt, Mutex, RwLock, RwLockReadGuard};
111111use core::sync::atomic::{AtomicUsize, AtomicBool, Ordering};
112112use core::time::Duration;
113113use core::ops::Deref;
@@ -2380,8 +2380,6 @@ where
23802380
23812381 #[cfg(feature = "dnssec")]
23822382 hrn_resolver: OMNameResolver,
2383- #[cfg(feature = "dnssec")]
2384- pending_dns_onion_messages: Mutex<Vec<(DNSResolverMessage, MessageSendInstructions)>>,
23852383
23862384 #[cfg(test)]
23872385 pub(super) entropy_source: ES,
@@ -3233,8 +3231,6 @@ where
32333231
32343232 #[cfg(feature = "dnssec")]
32353233 hrn_resolver: OMNameResolver::new(current_timestamp, params.best_block.height),
3236- #[cfg(feature = "dnssec")]
3237- pending_dns_onion_messages: Mutex::new(Vec::new()),
32383234 }
32393235 }
32403236
@@ -9465,10 +9461,6 @@ impl Default for Bolt11InvoiceParameters {
94659461///
94669462/// [`OffersMessageFlow`]: crate::offers::flow::OffersMessageFlow
94679463pub trait OffersMessageCommons {
9468- #[cfg(feature = "dnssec")]
9469- /// Get pending DNS onion messages
9470- fn get_pending_dns_onion_messages(&self) -> MutexGuard<'_, Vec<(DNSResolverMessage, MessageSendInstructions)>>;
9471-
94729464 #[cfg(feature = "dnssec")]
94739465 /// Get hrn resolver
94749466 fn get_hrn_resolver(&self) -> &OMNameResolver;
@@ -9601,11 +9593,6 @@ where
96019593 MR::Target: MessageRouter,
96029594 L::Target: Logger,
96039595{
9604- #[cfg(feature = "dnssec")]
9605- fn get_pending_dns_onion_messages(&self) -> MutexGuard<'_, Vec<(DNSResolverMessage, MessageSendInstructions)>> {
9606- self.pending_dns_onion_messages.lock().expect("Mutex is locked by other thread.")
9607- }
9608-
96099596 #[cfg(feature = "dnssec")]
96109597 fn get_hrn_resolver(&self) -> &OMNameResolver {
96119598 &self.hrn_resolver
@@ -13122,8 +13109,6 @@ where
1312213109
1312313110 #[cfg(feature = "dnssec")]
1312413111 hrn_resolver: OMNameResolver::new(highest_seen_timestamp, best_block_height),
13125- #[cfg(feature = "dnssec")]
13126- pending_dns_onion_messages: Mutex::new(Vec::new()),
1312713112 };
1312813113
1312913114 for (_, monitor) in args.channel_monitors.iter() {
0 commit comments