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 {
16551655 max_liquidity_offset_history,
16561656 total_valid_points_tracked : 0 ,
16571657 } ;
1658- res. recalculate_valid_points ( ) ;
1658+ res. recalculate_valid_point_count ( ) ;
16591659 res
16601660 }
16611661
@@ -1672,10 +1672,10 @@ mod bucketed_history {
16721672 for bucket in self . max_liquidity_offset_history . buckets . iter_mut ( ) {
16731673 * bucket = ( ( * bucket as u64 ) * 1024 / divisor) as u16 ;
16741674 }
1675- self . recalculate_valid_points ( ) ;
1675+ self . recalculate_valid_point_count ( ) ;
16761676 }
16771677
1678- fn recalculate_valid_points ( & mut self ) {
1678+ fn recalculate_valid_point_count ( & mut self ) {
16791679 self . total_valid_points_tracked = 0 ;
16801680 for ( min_idx, min_bucket) in self . min_liquidity_offset_history . buckets . iter ( ) . enumerate ( ) {
16811681 for max_bucket in self . max_liquidity_offset_history . buckets . iter ( ) . take ( 32 - min_idx) {
@@ -1721,7 +1721,7 @@ mod bucketed_history {
17211721 self . tracker . max_liquidity_offset_history . track_datapoint ( min_offset_msat, capacity_msat) ;
17221722 self . tracker . min_liquidity_offset_history . track_datapoint ( max_offset_msat, capacity_msat) ;
17231723 }
1724- self . tracker . recalculate_valid_points ( ) ;
1724+ self . tracker . recalculate_valid_point_count ( ) ;
17251725 }
17261726 }
17271727
You can’t perform that action at this time.
0 commit comments