chore: remove unwrap from lnd wait invoice

This commit is contained in:
thesimplekid
2025-01-22 13:51:26 +00:00
parent 460ea5c09b
commit 7b7d7ce946

View File

@@ -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();