@@ -10,12 +10,10 @@ use bittorrent_tracker_core::torrent::repository::in_memory::InMemoryTorrentRepo
10
10
use bittorrent_tracker_core:: torrent:: repository:: persisted:: DatabasePersistentTorrentRepository ;
11
11
use bittorrent_tracker_core:: whitelist;
12
12
use bittorrent_tracker_core:: whitelist:: manager:: WhitelistManager ;
13
- use packages:: statistics:: event:: sender:: Sender ;
14
- use packages:: statistics:: repository:: Repository ;
15
13
use tokio:: sync:: RwLock ;
16
14
use torrust_tracker_configuration:: { Core , HttpApi , HttpTracker , UdpTracker } ;
17
15
18
- use crate :: packages:: { self , http_tracker_core, udp_tracker_core} ;
16
+ use crate :: packages:: { http_tracker_core, udp_tracker_core} ;
19
17
use crate :: servers:: udp:: server:: banning:: BanService ;
20
18
21
19
pub struct AppContainer {
@@ -27,10 +25,8 @@ pub struct AppContainer {
27
25
pub authentication_service : Arc < AuthenticationService > ,
28
26
pub whitelist_authorization : Arc < whitelist:: authorization:: WhitelistAuthorization > ,
29
27
pub ban_service : Arc < RwLock < BanService > > ,
30
- pub stats_event_sender : Arc < Option < Box < dyn Sender > > > ,
31
28
pub http_stats_event_sender : Arc < Option < Box < dyn http_tracker_core:: statistics:: event:: sender:: Sender > > > ,
32
29
pub udp_stats_event_sender : Arc < Option < Box < dyn udp_tracker_core:: statistics:: event:: sender:: Sender > > > ,
33
- pub stats_repository : Arc < Repository > ,
34
30
pub http_stats_repository : Arc < http_tracker_core:: statistics:: repository:: Repository > ,
35
31
pub udp_stats_repository : Arc < udp_tracker_core:: statistics:: repository:: Repository > ,
36
32
pub whitelist_manager : Arc < WhitelistManager > ,
@@ -45,7 +41,6 @@ pub struct UdpTrackerContainer {
45
41
pub announce_handler : Arc < AnnounceHandler > ,
46
42
pub scrape_handler : Arc < ScrapeHandler > ,
47
43
pub whitelist_authorization : Arc < whitelist:: authorization:: WhitelistAuthorization > ,
48
- pub stats_event_sender : Arc < Option < Box < dyn Sender > > > ,
49
44
pub udp_stats_event_sender : Arc < Option < Box < dyn udp_tracker_core:: statistics:: event:: sender:: Sender > > > ,
50
45
pub ban_service : Arc < RwLock < BanService > > ,
51
46
}
@@ -59,7 +54,6 @@ impl UdpTrackerContainer {
59
54
announce_handler : app_container. announce_handler . clone ( ) ,
60
55
scrape_handler : app_container. scrape_handler . clone ( ) ,
61
56
whitelist_authorization : app_container. whitelist_authorization . clone ( ) ,
62
- stats_event_sender : app_container. stats_event_sender . clone ( ) ,
63
57
udp_stats_event_sender : app_container. udp_stats_event_sender . clone ( ) ,
64
58
ban_service : app_container. ban_service . clone ( ) ,
65
59
}
@@ -72,7 +66,6 @@ pub struct HttpTrackerContainer {
72
66
pub announce_handler : Arc < AnnounceHandler > ,
73
67
pub scrape_handler : Arc < ScrapeHandler > ,
74
68
pub whitelist_authorization : Arc < whitelist:: authorization:: WhitelistAuthorization > ,
75
- pub stats_event_sender : Arc < Option < Box < dyn Sender > > > ,
76
69
pub http_stats_event_sender : Arc < Option < Box < dyn http_tracker_core:: statistics:: event:: sender:: Sender > > > ,
77
70
pub authentication_service : Arc < AuthenticationService > ,
78
71
}
@@ -86,7 +79,6 @@ impl HttpTrackerContainer {
86
79
announce_handler : app_container. announce_handler . clone ( ) ,
87
80
scrape_handler : app_container. scrape_handler . clone ( ) ,
88
81
whitelist_authorization : app_container. whitelist_authorization . clone ( ) ,
89
- stats_event_sender : app_container. stats_event_sender . clone ( ) ,
90
82
http_stats_event_sender : app_container. http_stats_event_sender . clone ( ) ,
91
83
authentication_service : app_container. authentication_service . clone ( ) ,
92
84
}
0 commit comments