@@ -19,9 +19,9 @@ use bittorrent_http_protocol::v1::services::peer_ip_resolver::ClientIpSources;
19
19
use bittorrent_tracker_core:: announce_handler:: { AnnounceHandler , PeersWanted } ;
20
20
use bittorrent_tracker_core:: authentication:: service:: AuthenticationService ;
21
21
use bittorrent_tracker_core:: authentication:: Key ;
22
- use bittorrent_tracker_core:: statistics:: event:: sender:: Sender ;
23
22
use bittorrent_tracker_core:: whitelist;
24
23
use hyper:: StatusCode ;
24
+ use packages:: statistics:: event:: sender:: Sender ;
25
25
use torrust_tracker_clock:: clock:: Time ;
26
26
use torrust_tracker_configuration:: Core ;
27
27
use torrust_tracker_primitives:: core:: AnnounceData ;
@@ -33,7 +33,7 @@ use crate::servers::http::v1::extractors::authentication_key::Extract as Extract
33
33
use crate :: servers:: http:: v1:: extractors:: client_ip_sources:: Extract as ExtractClientIpSources ;
34
34
use crate :: servers:: http:: v1:: handlers:: common:: auth;
35
35
use crate :: servers:: http:: v1:: services:: { self } ;
36
- use crate :: CurrentClock ;
36
+ use crate :: { packages , CurrentClock } ;
37
37
38
38
/// It handles the `announce` request when the HTTP tracker does not require
39
39
/// authentication (no PATH `key` parameter required).
@@ -256,15 +256,17 @@ mod tests {
256
256
use bittorrent_tracker_core:: authentication:: service:: AuthenticationService ;
257
257
use bittorrent_tracker_core:: core_tests:: sample_info_hash;
258
258
use bittorrent_tracker_core:: databases:: setup:: initialize_database;
259
- use bittorrent_tracker_core:: statistics;
260
- use bittorrent_tracker_core:: statistics:: event:: sender:: Sender ;
261
259
use bittorrent_tracker_core:: torrent:: repository:: in_memory:: InMemoryTorrentRepository ;
262
260
use bittorrent_tracker_core:: torrent:: repository:: persisted:: DatabasePersistentTorrentRepository ;
263
261
use bittorrent_tracker_core:: whitelist:: authorization:: WhitelistAuthorization ;
264
262
use bittorrent_tracker_core:: whitelist:: repository:: in_memory:: InMemoryWhitelist ;
263
+ use packages:: statistics;
264
+ use packages:: statistics:: event:: sender:: Sender ;
265
265
use torrust_tracker_configuration:: { Configuration , Core } ;
266
266
use torrust_tracker_test_helpers:: configuration;
267
267
268
+ use crate :: packages;
269
+
268
270
struct CoreTrackerServices {
269
271
pub core_config : Arc < Core > ,
270
272
pub announce_handler : Arc < AnnounceHandler > ,
0 commit comments