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 {
857
857
}
858
858
859
859
/// 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 > {
861
863
self . inner . write ( ) . unwrap ( ) . set_dns_resolvers ( dns_resolvers_node_ids) . map ( |_| ( ) )
862
864
}
863
865
Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ impl Bolt12Payment {
282
282
/// This can be used to pay so-called "zero-amount" offers, i.e., an offer that leaves the
283
283
/// amount paid to be determined by the user.
284
284
///
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.
286
286
pub fn send_to_human_readable_name (
287
287
& self , name : & str , amount_msat : u64 ,
288
288
) -> Result < PaymentId , Error > {
@@ -304,13 +304,9 @@ impl Bolt12Payment {
304
304
None => Err ( Error :: DnsResolversNotConfigured ) ,
305
305
} ?;
306
306
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
+
314
310
match self . channel_manager . pay_for_offer_from_human_readable_name (
315
311
hrn. clone ( ) ,
316
312
amount_msat,
You can’t perform that action at this time.
0 commit comments