@@ -83,7 +83,7 @@ use crate::util::logger::{Level, Logger, WithContext};
8383use crate::util::errors::APIError;
8484
8585#[cfg(feature = "dnssec")]
86- use crate::onion_message::dns_resolution::{DNSResolverMessage, OMNameResolver} ;
86+ use crate::onion_message::dns_resolution::OMNameResolver;
8787
8888#[cfg(not(c_bindings))]
8989use {
@@ -108,7 +108,7 @@ use core::{cmp, mem};
108108use core::borrow::Borrow;
109109use core::cell::RefCell;
110110use crate::io::Read;
111- use crate::sync::{Arc, FairRwLock, LockHeldState, LockTestExt, Mutex, MutexGuard, RwLock, RwLockReadGuard};
111+ use crate::sync::{Arc, FairRwLock, LockHeldState, LockTestExt, Mutex, RwLock, RwLockReadGuard};
112112use core::sync::atomic::{AtomicUsize, AtomicBool, Ordering};
113113use core::time::Duration;
114114use core::ops::Deref;
@@ -2373,8 +2373,6 @@ where
23732373
23742374 #[cfg(feature = "dnssec")]
23752375 hrn_resolver: OMNameResolver,
2376- #[cfg(feature = "dnssec")]
2377- pending_dns_onion_messages: Mutex<Vec<(DNSResolverMessage, MessageSendInstructions)>>,
23782376
23792377 entropy_source: ES,
23802378 node_signer: NS,
@@ -3222,8 +3220,6 @@ where
32223220
32233221 #[cfg(feature = "dnssec")]
32243222 hrn_resolver: OMNameResolver::new(current_timestamp, params.best_block.height),
3225- #[cfg(feature = "dnssec")]
3226- pending_dns_onion_messages: Mutex::new(Vec::new()),
32273223 }
32283224 }
32293225
@@ -9154,10 +9150,6 @@ impl Default for Bolt11InvoiceParameters {
91549150///
91559151/// [`OffersMessageFlow`]: crate::offers::flow::OffersMessageFlow
91569152pub trait OffersMessageCommons {
9157- #[cfg(feature = "dnssec")]
9158- /// Get pending DNS onion messages
9159- fn get_pending_dns_onion_messages(&self) -> MutexGuard<'_, Vec<(DNSResolverMessage, MessageSendInstructions)>>;
9160-
91619153 #[cfg(feature = "dnssec")]
91629154 /// Get hrn resolver
91639155 fn get_hrn_resolver(&self) -> &OMNameResolver;
@@ -9290,11 +9282,6 @@ where
92909282 MR::Target: MessageRouter,
92919283 L::Target: Logger,
92929284{
9293- #[cfg(feature = "dnssec")]
9294- fn get_pending_dns_onion_messages(&self) -> MutexGuard<'_, Vec<(DNSResolverMessage, MessageSendInstructions)>> {
9295- self.pending_dns_onion_messages.lock().expect("Mutex is locked by other thread.")
9296- }
9297-
92989285 #[cfg(feature = "dnssec")]
92999286 fn get_hrn_resolver(&self) -> &OMNameResolver {
93009287 &self.hrn_resolver
@@ -12792,8 +12779,6 @@ where
1279212779
1279312780 #[cfg(feature = "dnssec")]
1279412781 hrn_resolver: OMNameResolver::new(highest_seen_timestamp, best_block_height),
12795- #[cfg(feature = "dnssec")]
12796- pending_dns_onion_messages: Mutex::new(Vec::new()),
1279712782 };
1279812783
1279912784 for (_, monitor) in args.channel_monitors.iter() {
0 commit comments