Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2013,7 +2013,8 @@ mod tests {

fn list(
&self, primary_namespace: &str, secondary_namespace: &str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, io::Error>> + 'static + Send>> {
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, io::Error>> + 'static + Send>>
{
let res = KVStoreSync::list(self, primary_namespace, secondary_namespace);
Box::pin(async move { res })
}
Expand Down
3 changes: 2 additions & 1 deletion src/data_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ mod tests {

fn list(
&self, _primary_namespace: &str, _secondary_namespace: &str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, io::Error>> + 'static + Send>> {
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, io::Error>> + 'static + Send>>
{
Box::pin(async { Err(io::Error::new(io::ErrorKind::Other, "list failed")) })
}
}
Expand Down
16 changes: 7 additions & 9 deletions src/payment/asynchronous/static_invoice_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,13 @@ impl StaticInvoiceStore {
)
})
})
.or_else(
|e| {
if e.kind() == lightning::io::ErrorKind::NotFound {
Ok(None)
} else {
Err(e)
}
},
)
.or_else(|e| {
if e.kind() == lightning::io::ErrorKind::NotFound {
Ok(None)
} else {
Err(e)
}
})
}

pub(crate) async fn handle_persist_static_invoice(
Expand Down
3 changes: 2 additions & 1 deletion tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,8 @@ pub(crate) async fn do_channel_full_cycle<E: ElectrumApi>(
+ invoice_amount_3_msat
+ determined_amount_msat
+ keysend_amount_msat)
/ 1000 - splice_out_sat;
/ 1000
- splice_out_sat;
let node_a_upper_bound_sat =
(premine_amount_sat - funding_amount_sat) + (funding_amount_sat - sum_of_all_payments_sat);
let node_a_lower_bound_sat = node_a_upper_bound_sat - onchain_fee_buffer_sat;
Expand Down
3 changes: 2 additions & 1 deletion tests/integration_tests_rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,8 @@ async fn async_payment() {
.filter(|n| {
node.network_graph().node(n).map_or(false, |info| info.announcement_info.is_some())
})
.count() >= 2
.count()
>= 2
};

// Wait for everyone to see all channels and node announcements.
Expand Down
Loading