File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -855,7 +855,9 @@ impl ArcedNodeBuilder {
855855 }
856856
857857 /// Sets the default dns_resolvers to be used when sending payments to HRNs.
858- pub fn set_dns_resolvers ( & self , dns_resolvers_node_ids : Vec < PublicKey > ) -> Result < ( ) , BuildError > {
858+ pub fn set_dns_resolvers (
859+ & self , dns_resolvers_node_ids : Vec < PublicKey > ,
860+ ) -> Result < ( ) , BuildError > {
859861 self . inner . write ( ) . unwrap ( ) . set_dns_resolvers ( dns_resolvers_node_ids) . map ( |_| ( ) )
860862 }
861863
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ impl Bolt12Payment {
267267 /// This can be used to pay so-called "zero-amount" offers, i.e., an offer that leaves the
268268 /// amount paid to be determined by the user.
269269 ///
270- /// If `dns_resolvers ` in Config is set to `None`, this operation will fail.
270+ /// If `dns_resolvers_node_ids ` in Config is set to `None`, this operation will fail.
271271 pub fn send_to_human_readable_name (
272272 & self , name : & str , amount_msat : u64 ,
273273 ) -> Result < PaymentId , Error > {
@@ -289,13 +289,9 @@ impl Bolt12Payment {
289289 None => Err ( Error :: DnsResolversNotConfigured ) ,
290290 } ?;
291291
292- let destinations: Vec < Destination > = dns_resolvers
293- . into_iter ( )
294- . map ( |public_key| {
295- Destination :: Node ( public_key)
296- } )
297- . collect ( ) ;
298-
292+ let destinations: Vec < Destination > =
293+ dns_resolvers. into_iter ( ) . map ( |public_key| Destination :: Node ( public_key) ) . collect ( ) ;
294+
299295 match self . channel_manager . pay_for_offer_from_human_readable_name (
300296 hrn. clone ( ) ,
301297 amount_msat,
You can’t perform that action at this time.
0 commit comments