Skip to content

Commit fdbea0a

Browse files
committed
refactor: [#1541] rename mod
1 parent 4e3e4f5 commit fdbea0a

File tree

15 files changed

+14
-14
lines changed

15 files changed

+14
-14
lines changed

packages/axum-http-tracker-server/src/v1/handlers/announce.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ mod tests {
120120
use bittorrent_tracker_core::authentication::service::AuthenticationService;
121121
use bittorrent_tracker_core::databases::setup::initialize_database;
122122
use bittorrent_tracker_core::torrent::repository::in_memory::InMemoryTorrentRepository;
123-
use bittorrent_tracker_core::torrent::repository::persisted::DatabaseDownloadsMetricRepository;
123+
use bittorrent_tracker_core::torrent::repository::downloads::DatabaseDownloadsMetricRepository;
124124
use bittorrent_tracker_core::whitelist::authorization::WhitelistAuthorization;
125125
use bittorrent_tracker_core::whitelist::repository::in_memory::InMemoryWhitelist;
126126
use torrust_tracker_configuration::Configuration;

packages/http-tracker-core/benches/helpers/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use bittorrent_tracker_core::authentication::key::repository::in_memory::InMemor
1515
use bittorrent_tracker_core::authentication::service::AuthenticationService;
1616
use bittorrent_tracker_core::databases::setup::initialize_database;
1717
use bittorrent_tracker_core::torrent::repository::in_memory::InMemoryTorrentRepository;
18-
use bittorrent_tracker_core::torrent::repository::persisted::DatabaseDownloadsMetricRepository;
18+
use bittorrent_tracker_core::torrent::repository::downloads::DatabaseDownloadsMetricRepository;
1919
use bittorrent_tracker_core::whitelist::authorization::WhitelistAuthorization;
2020
use bittorrent_tracker_core::whitelist::repository::in_memory::InMemoryWhitelist;
2121
use futures::future::BoxFuture;

packages/http-tracker-core/src/services/announce.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ mod tests {
213213
use bittorrent_tracker_core::authentication::service::AuthenticationService;
214214
use bittorrent_tracker_core::databases::setup::initialize_database;
215215
use bittorrent_tracker_core::torrent::repository::in_memory::InMemoryTorrentRepository;
216-
use bittorrent_tracker_core::torrent::repository::persisted::DatabaseDownloadsMetricRepository;
216+
use bittorrent_tracker_core::torrent::repository::downloads::DatabaseDownloadsMetricRepository;
217217
use bittorrent_tracker_core::whitelist::authorization::WhitelistAuthorization;
218218
use bittorrent_tracker_core::whitelist::repository::in_memory::InMemoryWhitelist;
219219
use torrust_tracker_configuration::{Configuration, Core};

packages/http-tracker-core/src/services/scrape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ mod tests {
177177
use bittorrent_tracker_core::databases::setup::initialize_database;
178178
use bittorrent_tracker_core::scrape_handler::ScrapeHandler;
179179
use bittorrent_tracker_core::torrent::repository::in_memory::InMemoryTorrentRepository;
180-
use bittorrent_tracker_core::torrent::repository::persisted::DatabaseDownloadsMetricRepository;
180+
use bittorrent_tracker_core::torrent::repository::downloads::DatabaseDownloadsMetricRepository;
181181
use bittorrent_tracker_core::whitelist::authorization::WhitelistAuthorization;
182182
use bittorrent_tracker_core::whitelist::repository::in_memory::InMemoryWhitelist;
183183
use futures::future::BoxFuture;

packages/tracker-core/src/announce_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ use torrust_tracker_primitives::core::AnnounceData;
9999
use torrust_tracker_primitives::peer;
100100

101101
use super::torrent::repository::in_memory::InMemoryTorrentRepository;
102-
use super::torrent::repository::persisted::DatabaseDownloadsMetricRepository;
102+
use super::torrent::repository::downloads::DatabaseDownloadsMetricRepository;
103103
use crate::error::AnnounceError;
104104
use crate::whitelist::authorization::WhitelistAuthorization;
105105

packages/tracker-core/src/container.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::databases::Database;
1313
use crate::scrape_handler::ScrapeHandler;
1414
use crate::torrent::manager::TorrentsManager;
1515
use crate::torrent::repository::in_memory::InMemoryTorrentRepository;
16-
use crate::torrent::repository::persisted::DatabaseDownloadsMetricRepository;
16+
use crate::torrent::repository::downloads::DatabaseDownloadsMetricRepository;
1717
use crate::whitelist::authorization::WhitelistAuthorization;
1818
use crate::whitelist::manager::WhitelistManager;
1919
use crate::whitelist::repository::in_memory::InMemoryWhitelist;

packages/tracker-core/src/statistics/event/handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use torrust_tracker_torrent_repository::event::Event;
77

88
use crate::statistics::repository::Repository;
99
use crate::statistics::TRACKER_CORE_PERSISTENT_TORRENTS_DOWNLOADS_TOTAL;
10-
use crate::torrent::repository::persisted::DatabaseDownloadsMetricRepository;
10+
use crate::torrent::repository::downloads::DatabaseDownloadsMetricRepository;
1111

1212
pub async fn handle_event(
1313
event: Event,

packages/tracker-core/src/statistics/event/listener.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use torrust_tracker_torrent_repository::event::receiver::Receiver;
77

88
use super::handler::handle_event;
99
use crate::statistics::repository::Repository;
10-
use crate::torrent::repository::persisted::DatabaseDownloadsMetricRepository;
10+
use crate::torrent::repository::downloads::DatabaseDownloadsMetricRepository;
1111
use crate::{CurrentClock, TRACKER_CORE_LOG_TARGET};
1212

1313
#[must_use]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use torrust_tracker_primitives::DurationSinceUnixEpoch;
88
use super::repository::Repository;
99
use super::TRACKER_CORE_PERSISTENT_TORRENTS_DOWNLOADS_TOTAL;
1010
use crate::databases;
11-
use crate::torrent::repository::persisted::DatabaseDownloadsMetricRepository;
11+
use crate::torrent::repository::downloads::DatabaseDownloadsMetricRepository;
1212

1313
/// Loads persisted metrics from the database and sets them in the stats repository.
1414
///

packages/tracker-core/src/test_helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub(crate) mod tests {
2020
use crate::databases::setup::initialize_database;
2121
use crate::scrape_handler::ScrapeHandler;
2222
use crate::torrent::repository::in_memory::InMemoryTorrentRepository;
23-
use crate::torrent::repository::persisted::DatabaseDownloadsMetricRepository;
23+
use crate::torrent::repository::downloads::DatabaseDownloadsMetricRepository;
2424
use crate::whitelist::repository::in_memory::InMemoryWhitelist;
2525
use crate::whitelist::{self};
2626

0 commit comments

Comments
 (0)