Skip to content

Commit c5b8d6e

Browse files
committed
Return a non-Arced Bolt12Payment for non-uniffi
.. somehow this was previously overlooked.
1 parent 76fb23f commit c5b8d6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,13 +1003,13 @@ impl Node {
10031003
///
10041004
/// [BOLT 12]: https://github.com/lightning/bolts/blob/master/12-offer-encoding.md
10051005
#[cfg(not(feature = "uniffi"))]
1006-
pub fn bolt12_payment(&self) -> Arc<Bolt12Payment> {
1007-
Arc::new(Bolt12Payment::new(
1006+
pub fn bolt12_payment(&self) -> Bolt12Payment {
1007+
Bolt12Payment::new(
10081008
Arc::clone(&self.runtime),
10091009
Arc::clone(&self.channel_manager),
10101010
Arc::clone(&self.payment_store),
10111011
Arc::clone(&self.logger),
1012-
))
1012+
)
10131013
}
10141014

10151015
/// Returns a payment handler allowing to create and pay [BOLT 12] offers and refunds.

0 commit comments

Comments
 (0)