Skip to content

Commit 39c5bbc

Browse files
committed
Make ignored candidate counts u32
.. as a follow-up from #2417.
1 parent c480b0c commit 39c5bbc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lightning/src/routing/router.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,13 +1713,13 @@ where L::Target: Logger {
17131713
LoggedPayeePubkey(payment_params.payee.node_id()), our_node_pubkey, final_value_msat);
17141714

17151715
// Remember how many candidates we ignored to allow for some logging afterwards.
1716-
let mut num_ignored_value_contribution = 0;
1717-
let mut num_ignored_path_length_limit = 0;
1718-
let mut num_ignored_cltv_delta_limit = 0;
1719-
let mut num_ignored_previously_failed = 0;
1720-
let mut num_ignored_total_fee_limit = 0;
1721-
let mut num_ignored_avoid_overpayment = 0;
1722-
let mut num_ignored_htlc_minimum_msat_limit = 0;
1716+
let mut num_ignored_value_contribution: u32 = 0;
1717+
let mut num_ignored_path_length_limit: u32 = 0;
1718+
let mut num_ignored_cltv_delta_limit: u32 = 0;
1719+
let mut num_ignored_previously_failed: u32 = 0;
1720+
let mut num_ignored_total_fee_limit: u32 = 0;
1721+
let mut num_ignored_avoid_overpayment: u32 = 0;
1722+
let mut num_ignored_htlc_minimum_msat_limit: u32 = 0;
17231723

17241724
macro_rules! add_entry {
17251725
// Adds entry which goes from $src_node_id to $dest_node_id over the $candidate hop.

0 commit comments

Comments
 (0)