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 @@ -265,7 +265,7 @@ impl Bolt12Payment {
265
265
/// This can be used to pay so-called "zero-amount" offers, i.e., an offer that leaves the
266
266
/// amount paid to be determined by the user.
267
267
///
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.
269
269
pub fn send_to_human_readable_name (
270
270
& self , name : & str , amount_msat : u64 ,
271
271
) -> Result < PaymentId , Error > {
@@ -287,13 +287,9 @@ impl Bolt12Payment {
287
287
None => Err ( Error :: DnsResolversNotConfigured ) ,
288
288
} ?;
289
289
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
+
297
293
match self . channel_manager . pay_for_offer_from_human_readable_name (
298
294
hrn. clone ( ) ,
299
295
amount_msat,
You can’t perform that action at this time.
0 commit comments