mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-22 23:25:22 +01:00
chore: remove unwrap from lnd wait invoice
This commit is contained in:
@@ -108,7 +108,10 @@ impl MintLightning for Lnd {
|
|||||||
.lightning()
|
.lightning()
|
||||||
.subscribe_invoices(stream_req)
|
.subscribe_invoices(stream_req)
|
||||||
.await
|
.await
|
||||||
.unwrap()
|
.map_err(|_err| {
|
||||||
|
tracing::error!("Could not subscribe to invoice");
|
||||||
|
Error::Connection
|
||||||
|
})?
|
||||||
.into_inner();
|
.into_inner();
|
||||||
|
|
||||||
let cancel_token = self.wait_invoice_cancel_token.clone();
|
let cancel_token = self.wait_invoice_cancel_token.clone();
|
||||||
|
|||||||
Reference in New Issue
Block a user