Skip to content

Commit 4e3e4f5

Browse files
committed
refactor: [#1541] create folder for mod
More submods will be included inside.
1 parent 99adbde commit 4e3e4f5

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

packages/tracker-core/src/statistics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pub mod event;
22
pub mod metrics;
3-
pub mod persisted_metrics;
3+
pub mod persisted;
44
pub mod repository;
55

66
use metrics::Metrics;

packages/tracker-core/src/statistics/persisted_metrics.rs renamed to packages/tracker-core/src/statistics/persisted/mod.rs

File renamed without changes.

packages/tracker-core/tests/common/test_env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use aquatic_udp_protocol::AnnounceEvent;
55
use bittorrent_primitives::info_hash::InfoHash;
66
use bittorrent_tracker_core::announce_handler::PeersWanted;
77
use bittorrent_tracker_core::container::TrackerCoreContainer;
8-
use bittorrent_tracker_core::statistics::persisted_metrics::load_persisted_metrics;
8+
use bittorrent_tracker_core::statistics::persisted::load_persisted_metrics;
99
use tokio::task::yield_now;
1010
use torrust_tracker_configuration::Core;
1111
use torrust_tracker_metrics::label::LabelSet;

src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ fn load_torrents_from_database(config: &Configuration, app_container: &Arc<AppCo
141141
#[allow(dead_code)]
142142
async fn load_torrent_metrics(config: &Configuration, app_container: &Arc<AppContainer>) {
143143
if config.core.tracker_policy.persistent_torrent_completed_stat {
144-
bittorrent_tracker_core::statistics::persisted_metrics::load_persisted_metrics(
144+
bittorrent_tracker_core::statistics::persisted::load_persisted_metrics(
145145
&app_container.tracker_core_container.stats_repository,
146146
&app_container.tracker_core_container.db_downloads_metric_repository,
147147
CurrentClock::now(),

0 commit comments

Comments
 (0)