Skip to content

Commit e233188

Browse files
authored
Merge pull request #348 from tnull/2024-08-fix-bolt12-api
2 parents 76fb23f + c5b8d6e commit e233188

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)