DRY redundant calls to `$candidate.htlc_minimum_msat()` in routing
authorMatt Corallo <git@bluematt.me>
Fri, 8 Dec 2023 01:49:08 +0000 (01:49 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 21 Dec 2023 05:59:59 +0000 (05:59 +0000)
commit5c6d126418590de66925addf0b1f2c1f8235fbbd
tree7ee9616e87a7daa5bc0c71b875f9aaccf181969b
parent3db39bfaf855219d453ff906636b625d5b3dd489
DRY redundant calls to `$candidate.htlc_minimum_msat()` in routing

While LLVM should inline and elide the redundant calls, because the
router is rather large LLVM can decide against inlining in some
cases where it would be an nice win.

Thus, its worth DRY'ing the redundant calls explicitly.
lightning/src/routing/router.rs