Skip to content

Commit 4c082fa

Browse files
committed
refactor: [#1589] make methods private
1 parent cd57f7a commit 4c082fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/udp-tracker-server/src/statistics

packages/udp-tracker-server/src/statistics/metrics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl Metrics {
8585
#[must_use]
8686
#[allow(clippy::cast_sign_loss)]
8787
#[allow(clippy::cast_possible_truncation)]
88-
pub fn udp_avg_processing_time_ns(&self, label_set: &LabelSet) -> u64 {
88+
fn udp_avg_processing_time_ns(&self, label_set: &LabelSet) -> u64 {
8989
self.metric_collection
9090
.sum(
9191
&metric_name!(UDP_TRACKER_SERVER_PERFORMANCE_AVG_PROCESSING_TIME_NS),
@@ -106,7 +106,7 @@ impl Metrics {
106106
#[must_use]
107107
#[allow(clippy::cast_sign_loss)]
108108
#[allow(clippy::cast_possible_truncation)]
109-
pub fn udp_processed_requests_total(&self, label_set: &LabelSet) -> u64 {
109+
fn udp_processed_requests_total(&self, label_set: &LabelSet) -> u64 {
110110
self.metric_collection
111111
.sum(
112112
&metric_name!(UDP_TRACKER_SERVER_PERFORMANCE_AVG_PROCESSED_REQUESTS_TOTAL),

0 commit comments

Comments
 (0)