Skip to content

Commit

Permalink
Return a non-Arced Bolt12Payment for non-uniffi
Browse files Browse the repository at this point in the history
.. somehow this was previously overlooked.
  • Loading branch information
tnull committed Aug 22, 2024
1 parent 76fb23f commit c5b8d6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,13 +1003,13 @@ impl Node {
///
/// [BOLT 12]: https://github.com/lightning/bolts/blob/master/12-offer-encoding.md
#[cfg(not(feature = "uniffi"))]
pub fn bolt12_payment(&self) -> Arc<Bolt12Payment> {
Arc::new(Bolt12Payment::new(
pub fn bolt12_payment(&self) -> Bolt12Payment {
Bolt12Payment::new(
Arc::clone(&self.runtime),
Arc::clone(&self.channel_manager),
Arc::clone(&self.payment_store),
Arc::clone(&self.logger),
))
)
}

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

0 comments on commit c5b8d6e

Please sign in to comment.