File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1655,7 +1655,7 @@ mod bucketed_history {
1655
1655
max_liquidity_offset_history,
1656
1656
total_valid_points_tracked : 0 ,
1657
1657
} ;
1658
- res. recalculate_valid_points ( ) ;
1658
+ res. recalculate_valid_point_count ( ) ;
1659
1659
res
1660
1660
}
1661
1661
@@ -1672,10 +1672,10 @@ mod bucketed_history {
1672
1672
for bucket in self . max_liquidity_offset_history . buckets . iter_mut ( ) {
1673
1673
* bucket = ( ( * bucket as u64 ) * 1024 / divisor) as u16 ;
1674
1674
}
1675
- self . recalculate_valid_points ( ) ;
1675
+ self . recalculate_valid_point_count ( ) ;
1676
1676
}
1677
1677
1678
- fn recalculate_valid_points ( & mut self ) {
1678
+ fn recalculate_valid_point_count ( & mut self ) {
1679
1679
self . total_valid_points_tracked = 0 ;
1680
1680
for ( min_idx, min_bucket) in self . min_liquidity_offset_history . buckets . iter ( ) . enumerate ( ) {
1681
1681
for max_bucket in self . max_liquidity_offset_history . buckets . iter ( ) . take ( 32 - min_idx) {
@@ -1721,7 +1721,7 @@ mod bucketed_history {
1721
1721
self . tracker . max_liquidity_offset_history . track_datapoint ( min_offset_msat, capacity_msat) ;
1722
1722
self . tracker . min_liquidity_offset_history . track_datapoint ( max_offset_msat, capacity_msat) ;
1723
1723
}
1724
- self . tracker . recalculate_valid_points ( ) ;
1724
+ self . tracker . recalculate_valid_point_count ( ) ;
1725
1725
}
1726
1726
}
1727
1727
You can’t perform that action at this time.
0 commit comments