Skip to content

Commit

Permalink
Merge pull request #553 from thesimplekid/lnd_unwrap
Browse files Browse the repository at this point in the history
chore: remove unwrap from lnd wait invoice
  • Loading branch information
thesimplekid authored Jan 22, 2025
2 parents 7f51a0f + 7b7d7ce commit 7aa83bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/cdk-lnd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ impl MintLightning for Lnd {
.lightning()
.subscribe_invoices(stream_req)
.await
.unwrap()
.map_err(|_err| {
tracing::error!("Could not subscribe to invoice");
Error::Connection
})?
.into_inner();

let cancel_token = self.wait_invoice_cancel_token.clone();
Expand Down

0 comments on commit 7aa83bf

Please sign in to comment.