From: Matt Corallo Date: Sat, 16 Sep 2023 17:04:11 +0000 (+0000) Subject: Avoid unnecessary newline in middle of log statement X-Git-Tag: v0.0.117-alpha1~3^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=refs%2Fheads%2F2023-04-nonlinear-scoring;p=rust-lightning Avoid unnecessary newline in middle of log statement --- diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index 261733c13..710101299 100644 --- a/lightning/src/routing/router.rs +++ b/lightning/src/routing/router.rs @@ -2315,8 +2315,9 @@ where L::Target: Logger { // Decrease the available liquidity of a hop in the middle of the path. let victim_candidate = &payment_path.hops[(payment_path.hops.len()) / 2].0.candidate; let exhausted = u64::max_value(); - log_trace!(logger, "Disabling route candidate {} for future path building iterations to - avoid duplicates.", LoggedCandidateHop(victim_candidate)); + log_trace!(logger, + "Disabling route candidate {} for future path building iterations to avoid duplicates.", + LoggedCandidateHop(victim_candidate)); *used_liquidities.entry(victim_candidate.id(false)).or_default() = exhausted; *used_liquidities.entry(victim_candidate.id(true)).or_default() = exhausted; }