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 @@ -282,7 +282,7 @@ impl Bolt12Payment {
282282 /// This can be used to pay so-called "zero-amount" offers, i.e., an offer that leaves the
283283 /// amount paid to be determined by the user.
284284 ///
285- /// If `dns_resolvers ` in Config is set to `None`, this operation will fail.
285+ /// If `dns_resolvers_node_ids ` in Config is set to `None`, this operation will fail.
286286 pub fn send_to_human_readable_name (
287287 & self , name : & str , amount_msat : u64 ,
288288 ) -> Result < PaymentId , Error > {
@@ -304,13 +304,9 @@ impl Bolt12Payment {
304304 None => Err ( Error :: DnsResolversNotConfigured ) ,
305305 } ?;
306306
307- let destinations: Vec < Destination > = dns_resolvers
308- . into_iter ( )
309- . map ( |public_key| {
310- Destination :: Node ( public_key)
311- } )
312- . collect ( ) ;
313-
307+ let destinations: Vec < Destination > =
308+ dns_resolvers. into_iter ( ) . map ( |public_key| Destination :: Node ( public_key) ) . collect ( ) ;
309+
314310 match self . channel_manager . pay_for_offer_from_human_readable_name (
315311 hrn. clone ( ) ,
316312 amount_msat,
You can’t perform that action at this time.
0 commit comments