From: Elias Rohrer Date: Wed, 27 Sep 2023 07:28:43 +0000 (+0200) Subject: Make ignored candidate counts `u32` X-Git-Tag: v0.0.117-rc1~15^2~3 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=39c5bbc0bb3b69941a355250859dbadf1203a499;p=rust-lightning Make ignored candidate counts `u32` .. as a follow-up from #2417. --- 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.