File tree Expand file tree Collapse file tree 15 files changed +14
-14
lines changed
axum-http-tracker-server/src/v1/handlers
udp-tracker-server/src/handlers Expand file tree Collapse file tree 15 files changed +14
-14
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use bittorrent_tracker_core::authentication::key::repository::in_memory::InMemor
1515use bittorrent_tracker_core:: authentication:: service:: AuthenticationService ;
1616use bittorrent_tracker_core:: databases:: setup:: initialize_database;
1717use 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 ;
1919use bittorrent_tracker_core:: whitelist:: authorization:: WhitelistAuthorization ;
2020use bittorrent_tracker_core:: whitelist:: repository:: in_memory:: InMemoryWhitelist ;
2121use futures:: future:: BoxFuture ;
Original file line number Diff line number Diff 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 } ;
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ use torrust_tracker_primitives::core::AnnounceData;
9999use torrust_tracker_primitives:: peer;
100100
101101use super :: torrent:: repository:: in_memory:: InMemoryTorrentRepository ;
102- use super :: torrent:: repository:: persisted :: DatabaseDownloadsMetricRepository ;
102+ use super :: torrent:: repository:: downloads :: DatabaseDownloadsMetricRepository ;
103103use crate :: error:: AnnounceError ;
104104use crate :: whitelist:: authorization:: WhitelistAuthorization ;
105105
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use crate::databases::Database;
1313use crate :: scrape_handler:: ScrapeHandler ;
1414use crate :: torrent:: manager:: TorrentsManager ;
1515use crate :: torrent:: repository:: in_memory:: InMemoryTorrentRepository ;
16- use crate :: torrent:: repository:: persisted :: DatabaseDownloadsMetricRepository ;
16+ use crate :: torrent:: repository:: downloads :: DatabaseDownloadsMetricRepository ;
1717use crate :: whitelist:: authorization:: WhitelistAuthorization ;
1818use crate :: whitelist:: manager:: WhitelistManager ;
1919use crate :: whitelist:: repository:: in_memory:: InMemoryWhitelist ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use torrust_tracker_torrent_repository::event::Event;
77
88use crate :: statistics:: repository:: Repository ;
99use crate :: statistics:: TRACKER_CORE_PERSISTENT_TORRENTS_DOWNLOADS_TOTAL ;
10- use crate :: torrent:: repository:: persisted :: DatabaseDownloadsMetricRepository ;
10+ use crate :: torrent:: repository:: downloads :: DatabaseDownloadsMetricRepository ;
1111
1212pub async fn handle_event (
1313 event : Event ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use torrust_tracker_torrent_repository::event::receiver::Receiver;
77
88use super :: handler:: handle_event;
99use crate :: statistics:: repository:: Repository ;
10- use crate :: torrent:: repository:: persisted :: DatabaseDownloadsMetricRepository ;
10+ use crate :: torrent:: repository:: downloads :: DatabaseDownloadsMetricRepository ;
1111use crate :: { CurrentClock , TRACKER_CORE_LOG_TARGET } ;
1212
1313#[ must_use]
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use torrust_tracker_primitives::DurationSinceUnixEpoch;
88use super :: repository:: Repository ;
99use super :: TRACKER_CORE_PERSISTENT_TORRENTS_DOWNLOADS_TOTAL ;
1010use 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///
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments