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>
Wed, 20 Mar 2024 00:51:20 +0000 (00:51 +0000)
commite9851ff313e92aa749ba967432c0b8b8d4a5c4bb
tree05884e8bce188a88871c357ab9a1ab0488286214
parent2d998f878212b14a810abba2fa2103414ddb22d8
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