Skip to content

Commit 4b3eabc

Browse files
committed
Make ignored candidate counts u32
.. as a follow-up from #2417.
1 parent fc557d0 commit 4b3eabc

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
@@ -1705,13 +1705,13 @@ where L::Target: Logger {
17051705
LoggedPayeePubkey(payment_params.payee.node_id()), our_node_pubkey, final_value_msat);
17061706

17071707
// Remember how many candidates we ignored to allow for some logging afterwards.
1708-
let mut num_ignored_value_contribution = 0;
1709-
let mut num_ignored_path_length_limit = 0;
1710-
let mut num_ignored_cltv_delta_limit = 0;
1711-
let mut num_ignored_previously_failed = 0;
1712-
let mut num_ignored_total_fee_limit = 0;
1713-
let mut num_ignored_avoid_overpayment = 0;
1714-
let mut num_ignored_htlc_minimum_msat_limit = 0;
1708+
let mut num_ignored_value_contribution: u32 = 0;
1709+
let mut num_ignored_path_length_limit: u32 = 0;
1710+
let mut num_ignored_cltv_delta_limit: u32 = 0;
1711+
let mut num_ignored_previously_failed: u32 = 0;
1712+
let mut num_ignored_total_fee_limit: u32 = 0;
1713+
let mut num_ignored_avoid_overpayment: u32 = 0;
1714+
let mut num_ignored_htlc_minimum_msat_limit: u32 = 0;
17151715

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

0 commit comments

Comments
 (0)