diff --git a/crates/notedeck/src/zaps/networking.rs b/crates/notedeck/src/zaps/networking.rs index a2173bf1..1bb8a5be 100644 --- a/crates/notedeck/src/zaps/networking.rs +++ b/crates/notedeck/src/zaps/networking.rs @@ -13,7 +13,7 @@ pub struct FetchedInvoice { pub type FetchingInvoice = Promise, JoinError>>; -async fn fetch_pay_req_async(url: &Url) -> Result { +async fn fetch_pay_req_async(url: &Url) -> Result { let (sender, promise) = Promise::new(); let on_done = move |response: Result| { @@ -36,7 +36,7 @@ async fn fetch_pay_req_async(url: &Url) -> Result { tokio::task::block_in_place(|| promise.block_and_take()) } -async fn fetch_pay_req_from_lud16(lud16: &str) -> Result { +async fn fetch_pay_req_from_lud16(lud16: &str) -> Result { let url = match generate_endpoint_url(lud16) { Ok(url) => url, Err(e) => return Err(e), @@ -100,7 +100,7 @@ fn make_kind_9734<'a>( } #[derive(Debug, Deserialize)] -pub struct LNUrlPayRequest { +pub struct LNUrlPayResponseRaw { #[allow(dead_code)] #[serde(rename = "allowsNostr")] allow_nostr: bool, @@ -184,7 +184,7 @@ fn convert_lnurl_to_endpoint_url(lnurl: &str) -> Result { .map_err(|e| ZapError::EndpointError(format!("endpoint url from lnurl is invalid: {e}"))) } -async fn fetch_pay_req_from_lnurl_async(lnurl: &str) -> Result { +async fn fetch_pay_req_from_lnurl_async(lnurl: &str) -> Result { let url = match convert_lnurl_to_endpoint_url(lnurl) { Ok(u) => u, Err(e) => return Err(e), @@ -195,7 +195,7 @@ async fn fetch_pay_req_from_lnurl_async(lnurl: &str) -> Result,