@@ -10,12 +10,10 @@ use bittorrent_tracker_core::torrent::repository::in_memory::InMemoryTorrentRepo
1010use bittorrent_tracker_core:: torrent:: repository:: persisted:: DatabasePersistentTorrentRepository ;
1111use bittorrent_tracker_core:: whitelist;
1212use bittorrent_tracker_core:: whitelist:: manager:: WhitelistManager ;
13- use packages:: statistics:: event:: sender:: Sender ;
14- use packages:: statistics:: repository:: Repository ;
1513use tokio:: sync:: RwLock ;
1614use torrust_tracker_configuration:: { Core , HttpApi , HttpTracker , UdpTracker } ;
1715
18- use crate :: packages:: { self , http_tracker_core, udp_tracker_core} ;
16+ use crate :: packages:: { http_tracker_core, udp_tracker_core} ;
1917use crate :: servers:: udp:: server:: banning:: BanService ;
2018
2119pub struct AppContainer {
@@ -27,10 +25,8 @@ pub struct AppContainer {
2725 pub authentication_service : Arc < AuthenticationService > ,
2826 pub whitelist_authorization : Arc < whitelist:: authorization:: WhitelistAuthorization > ,
2927 pub ban_service : Arc < RwLock < BanService > > ,
30- pub stats_event_sender : Arc < Option < Box < dyn Sender > > > ,
3128 pub http_stats_event_sender : Arc < Option < Box < dyn http_tracker_core:: statistics:: event:: sender:: Sender > > > ,
3229 pub udp_stats_event_sender : Arc < Option < Box < dyn udp_tracker_core:: statistics:: event:: sender:: Sender > > > ,
33- pub stats_repository : Arc < Repository > ,
3430 pub http_stats_repository : Arc < http_tracker_core:: statistics:: repository:: Repository > ,
3531 pub udp_stats_repository : Arc < udp_tracker_core:: statistics:: repository:: Repository > ,
3632 pub whitelist_manager : Arc < WhitelistManager > ,
@@ -45,7 +41,6 @@ pub struct UdpTrackerContainer {
4541 pub announce_handler : Arc < AnnounceHandler > ,
4642 pub scrape_handler : Arc < ScrapeHandler > ,
4743 pub whitelist_authorization : Arc < whitelist:: authorization:: WhitelistAuthorization > ,
48- pub stats_event_sender : Arc < Option < Box < dyn Sender > > > ,
4944 pub udp_stats_event_sender : Arc < Option < Box < dyn udp_tracker_core:: statistics:: event:: sender:: Sender > > > ,
5045 pub ban_service : Arc < RwLock < BanService > > ,
5146}
@@ -59,7 +54,6 @@ impl UdpTrackerContainer {
5954 announce_handler : app_container. announce_handler . clone ( ) ,
6055 scrape_handler : app_container. scrape_handler . clone ( ) ,
6156 whitelist_authorization : app_container. whitelist_authorization . clone ( ) ,
62- stats_event_sender : app_container. stats_event_sender . clone ( ) ,
6357 udp_stats_event_sender : app_container. udp_stats_event_sender . clone ( ) ,
6458 ban_service : app_container. ban_service . clone ( ) ,
6559 }
@@ -72,7 +66,6 @@ pub struct HttpTrackerContainer {
7266 pub announce_handler : Arc < AnnounceHandler > ,
7367 pub scrape_handler : Arc < ScrapeHandler > ,
7468 pub whitelist_authorization : Arc < whitelist:: authorization:: WhitelistAuthorization > ,
75- pub stats_event_sender : Arc < Option < Box < dyn Sender > > > ,
7669 pub http_stats_event_sender : Arc < Option < Box < dyn http_tracker_core:: statistics:: event:: sender:: Sender > > > ,
7770 pub authentication_service : Arc < AuthenticationService > ,
7871}
@@ -86,7 +79,6 @@ impl HttpTrackerContainer {
8679 announce_handler : app_container. announce_handler . clone ( ) ,
8780 scrape_handler : app_container. scrape_handler . clone ( ) ,
8881 whitelist_authorization : app_container. whitelist_authorization . clone ( ) ,
89- stats_event_sender : app_container. stats_event_sender . clone ( ) ,
9082 http_stats_event_sender : app_container. http_stats_event_sender . clone ( ) ,
9183 authentication_service : app_container. authentication_service . clone ( ) ,
9284 }
0 commit comments