Skip to content

Commit

Permalink
Remove pub visibility from functions in scheduler_metrics (#3224)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksolana authored Oct 20, 2024
1 parent 9add6ce commit aab654e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl SchedulerCountMetricsInner {
solana_metrics::submit(datapoint, log::Level::Info);
}

pub fn has_data(&self) -> bool {
fn has_data(&self) -> bool {
self.num_received != 0
|| self.num_buffered != 0
|| self.num_scheduled != 0
Expand Down Expand Up @@ -212,7 +212,7 @@ impl SchedulerCountMetricsInner {
}
}

pub fn get_min_priority(&self) -> u64 {
fn get_min_priority(&self) -> u64 {
// to avoid getting u64::max recorded by metrics / in case of edge cases
if self.min_prioritization_fees != u64::MAX {
self.min_prioritization_fees
Expand All @@ -221,7 +221,7 @@ impl SchedulerCountMetricsInner {
}
}

pub fn get_max_priority(&self) -> u64 {
fn get_max_priority(&self) -> u64 {
self.max_prioritization_fees
}
}
Expand Down

0 comments on commit aab654e

Please sign in to comment.