From aab654eecd0adc29607e59590a3bc92525e8c928 Mon Sep 17 00:00:00 2001 From: asolana <110843012+ksolana@users.noreply.github.com> Date: Sun, 20 Oct 2024 13:28:44 -0700 Subject: [PATCH] Remove pub visibility from functions in scheduler_metrics (#3224) --- .../transaction_scheduler/scheduler_metrics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/banking_stage/transaction_scheduler/scheduler_metrics.rs b/core/src/banking_stage/transaction_scheduler/scheduler_metrics.rs index bb8cbbe617396a..a6df4885a12713 100644 --- a/core/src/banking_stage/transaction_scheduler/scheduler_metrics.rs +++ b/core/src/banking_stage/transaction_scheduler/scheduler_metrics.rs @@ -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 @@ -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 @@ -221,7 +221,7 @@ impl SchedulerCountMetricsInner { } } - pub fn get_max_priority(&self) -> u64 { + fn get_max_priority(&self) -> u64 { self.max_prioritization_fees } }