From 39c5bbc0bb3b69941a355250859dbadf1203a499 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Wed, 27 Sep 2023 09:28:43 +0200 Subject: [PATCH] Make ignored candidate counts `u32` .. as a follow-up from #2417. --- lightning/src/routing/router.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index 940b846bb..193fe3523 100644 --- a/lightning/src/routing/router.rs +++ b/lightning/src/routing/router.rs @@ -1713,13 +1713,13 @@ where L::Target: Logger { LoggedPayeePubkey(payment_params.payee.node_id()), our_node_pubkey, final_value_msat); // Remember how many candidates we ignored to allow for some logging afterwards. - let mut num_ignored_value_contribution = 0; - let mut num_ignored_path_length_limit = 0; - let mut num_ignored_cltv_delta_limit = 0; - let mut num_ignored_previously_failed = 0; - let mut num_ignored_total_fee_limit = 0; - let mut num_ignored_avoid_overpayment = 0; - let mut num_ignored_htlc_minimum_msat_limit = 0; + let mut num_ignored_value_contribution: u32 = 0; + let mut num_ignored_path_length_limit: u32 = 0; + let mut num_ignored_cltv_delta_limit: u32 = 0; + let mut num_ignored_previously_failed: u32 = 0; + let mut num_ignored_total_fee_limit: u32 = 0; + let mut num_ignored_avoid_overpayment: u32 = 0; + let mut num_ignored_htlc_minimum_msat_limit: u32 = 0; macro_rules! add_entry { // Adds entry which goes from $src_node_id to $dest_node_id over the $candidate hop. -- 2.39.5