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>
Sun, 10 Dec 2023 03:48:55 +0000 (03:48 +0000)
commitd67385f348bf1dd26a7c21cd8d860dab43572771
tree9fc6996e34cad51fa427d0e9d66a5161429f9bdb
parent4ef4603b9cfb75f51a693699b971c1cf4374d3ab
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