We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Arc
Bolt12Payment
uniffi
1 parent 76fb23f commit c5b8d6eCopy full SHA for c5b8d6e
src/lib.rs
@@ -1003,13 +1003,13 @@ impl Node {
1003
///
1004
/// [BOLT 12]: https://github.com/lightning/bolts/blob/master/12-offer-encoding.md
1005
#[cfg(not(feature = "uniffi"))]
1006
- pub fn bolt12_payment(&self) -> Arc<Bolt12Payment> {
1007
- Arc::new(Bolt12Payment::new(
+ pub fn bolt12_payment(&self) -> Bolt12Payment {
+ Bolt12Payment::new(
1008
Arc::clone(&self.runtime),
1009
Arc::clone(&self.channel_manager),
1010
Arc::clone(&self.payment_store),
1011
Arc::clone(&self.logger),
1012
- ))
+ )
1013
}
1014
1015
/// Returns a payment handler allowing to create and pay [BOLT 12] offers and refunds.
0 commit comments