Skip to content

Commit 0cfa4f2

Browse files
committed
feat: [#1358] remove persistent metric from torrent-repository pkg
This package dones not have persistence. Persistence is only handle in the `tracker-core` pacakge. The metric will be included there.
1 parent 0b62136 commit 0cfa4f2

File tree

1 file changed

+0
-9
lines changed
  • packages/torrent-repository/src/statistics

1 file changed

+0
-9
lines changed

packages/torrent-repository/src/statistics/mod.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use torrust_tracker_metrics::metric_name;
88
use torrust_tracker_metrics::unit::Unit;
99

1010
const TORRENT_REPOSITORY_RUNTIME_TORRENTS_DOWNLOADS_TOTAL: &str = "torrent_repository_runtime_torrents_downloads_total";
11-
const TORRENT_REPOSITORY_PERSISTENT_TORRENTS_DOWNLOADS_TOTAL: &str = "torrent_repository_persistent_torrents_downloads_total";
1211

1312
#[must_use]
1413
pub fn describe_metrics() -> Metrics {
@@ -22,13 +21,5 @@ pub fn describe_metrics() -> Metrics {
2221
)),
2322
);
2423

25-
metrics.metric_collection.describe_counter(
26-
&metric_name!(TORRENT_REPOSITORY_PERSISTENT_TORRENTS_DOWNLOADS_TOTAL),
27-
Some(Unit::Count),
28-
Some(&MetricDescription::new(
29-
"The total number of torrent downloads since persistent statistics were enabled the first time.",
30-
)),
31-
);
32-
3324
metrics
3425
}

0 commit comments

Comments
 (0)