Skip to content

Commit b12d037

Browse files
committed
f describe variables better
1 parent eb20aab commit b12d037

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/routing/scoring.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,8 +1795,8 @@ mod bucketed_history {
17951795
// values, which will result in us thinking we have some nontrivial probability of
17961796
// routing up to that amount.
17971797
if self.min_liquidity_offset_history.buckets[0] != 0 {
1798-
let mut highest_max_bucket_with_points = 0;
1799-
let mut total_max_points = 0;
1798+
let mut highest_max_bucket_with_points = 0; // The highest max-bucket with any data
1799+
let mut total_max_points = 0; // Total points in max-buckets to consider
18001800
for (max_idx, max_bucket) in self.max_liquidity_offset_history.buckets.iter().enumerate() {
18011801
if *max_bucket >= 32 {
18021802
highest_max_bucket_with_points = cmp::max(highest_max_bucket_with_points, max_idx);

0 commit comments

Comments
 (0)