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 {
855
855
}
856
856
857
857
/// 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 > {
859
861
self . inner . write ( ) . unwrap ( ) . set_dns_resolvers ( dns_resolvers_node_ids) . map ( |_| ( ) )
860
862
}
861
863
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ impl Bolt12Payment {
267
267
/// This can be used to pay so-called "zero-amount" offers, i.e., an offer that leaves the
268
268
/// amount paid to be determined by the user.
269
269
///
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.
271
271
pub fn send_to_human_readable_name (
272
272
& self , name : & str , amount_msat : u64 ,
273
273
) -> Result < PaymentId , Error > {
@@ -289,13 +289,9 @@ impl Bolt12Payment {
289
289
None => Err ( Error :: DnsResolversNotConfigured ) ,
290
290
} ?;
291
291
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
+
299
295
match self . channel_manager . pay_for_offer_from_human_readable_name (
300
296
hrn. clone ( ) ,
301
297
amount_msat,
You can’t perform that action at this time.
0 commit comments