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 @@ -857,7 +857,9 @@ impl ArcedNodeBuilder {
857857 }
858858
859859 /// Sets the default dns_resolvers to be used when sending payments to HRNs.
860- pub fn set_dns_resolvers ( & self , dns_resolvers_node_ids : Vec < PublicKey > ) -> Result < ( ) , BuildError > {
860+ pub fn set_dns_resolvers (
861+ & self , dns_resolvers_node_ids : Vec < PublicKey > ,
862+ ) -> Result < ( ) , BuildError > {
861863 self . inner . write ( ) . unwrap ( ) . set_dns_resolvers ( dns_resolvers_node_ids) . map ( |_| ( ) )
862864 }
863865
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ impl Bolt12Payment {
265265 /// This can be used to pay so-called "zero-amount" offers, i.e., an offer that leaves the
266266 /// amount paid to be determined by the user.
267267 ///
268- /// If `dns_resolvers ` in Config is set to `None`, this operation will fail.
268+ /// If `dns_resolvers_node_ids ` in Config is set to `None`, this operation will fail.
269269 pub fn send_to_human_readable_name (
270270 & self , name : & str , amount_msat : u64 ,
271271 ) -> Result < PaymentId , Error > {
@@ -287,13 +287,9 @@ impl Bolt12Payment {
287287 None => Err ( Error :: DnsResolversNotConfigured ) ,
288288 } ?;
289289
290- let destinations: Vec < Destination > = dns_resolvers
291- . into_iter ( )
292- . map ( |public_key| {
293- Destination :: Node ( public_key)
294- } )
295- . collect ( ) ;
296-
290+ let destinations: Vec < Destination > =
291+ dns_resolvers. into_iter ( ) . map ( |public_key| Destination :: Node ( public_key) ) . collect ( ) ;
292+
297293 match self . channel_manager . pay_for_offer_from_human_readable_name (
298294 hrn. clone ( ) ,
299295 amount_msat,
You can’t perform that action at this time.
0 commit comments