Skip to content

Commit 7aa83bf

Browse files
authored
Merge pull request #553 from thesimplekid/lnd_unwrap
chore: remove unwrap from lnd wait invoice
2 parents 7f51a0f + 7b7d7ce commit 7aa83bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/cdk-lnd/src/lib.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ impl MintLightning for Lnd {
108108
.lightning()
109109
.subscribe_invoices(stream_req)
110110
.await
111-
.unwrap()
111+
.map_err(|_err| {
112+
tracing::error!("Could not subscribe to invoice");
113+
Error::Connection
114+
})?
112115
.into_inner();
113116

114117
let cancel_token = self.wait_invoice_cancel_token.clone();

0 commit comments

Comments
 (0)