@@ -23,7 +23,7 @@ use crate::core::announce_handler::AnnounceHandler;
23
23
use crate :: core:: authentication:: service:: AuthenticationService ;
24
24
use crate :: core:: scrape_handler:: ScrapeHandler ;
25
25
use crate :: core:: statistics:: event:: sender:: Sender ;
26
- use crate :: core:: { self , statistics, whitelist} ;
26
+ use crate :: core:: { statistics, whitelist} ;
27
27
use crate :: servers:: http:: server:: { HttpServer , Launcher } ;
28
28
use crate :: servers:: http:: Version ;
29
29
use crate :: servers:: registar:: ServiceRegistrationForm ;
@@ -39,7 +39,6 @@ use crate::servers::registar::ServiceRegistrationForm;
39
39
#[ allow( clippy:: too_many_arguments) ]
40
40
#[ instrument( skip(
41
41
config,
42
- tracker,
43
42
announce_handler,
44
43
scrape_handler,
45
44
authentication_service,
@@ -50,7 +49,6 @@ use crate::servers::registar::ServiceRegistrationForm;
50
49
pub async fn start_job (
51
50
config : & HttpTracker ,
52
51
core_config : Arc < Core > ,
53
- tracker : Arc < core:: Tracker > ,
54
52
announce_handler : Arc < AnnounceHandler > ,
55
53
scrape_handler : Arc < ScrapeHandler > ,
56
54
authentication_service : Arc < AuthenticationService > ,
@@ -71,7 +69,6 @@ pub async fn start_job(
71
69
socket,
72
70
tls,
73
71
core_config. clone ( ) ,
74
- tracker. clone ( ) ,
75
72
announce_handler. clone ( ) ,
76
73
scrape_handler. clone ( ) ,
77
74
authentication_service. clone ( ) ,
@@ -89,7 +86,6 @@ pub async fn start_job(
89
86
#[ instrument( skip(
90
87
socket,
91
88
tls,
92
- tracker,
93
89
announce_handler,
94
90
scrape_handler,
95
91
whitelist_authorization,
@@ -100,7 +96,6 @@ async fn start_v1(
100
96
socket : SocketAddr ,
101
97
tls : Option < RustlsConfig > ,
102
98
config : Arc < Core > ,
103
- tracker : Arc < core:: Tracker > ,
104
99
announce_handler : Arc < AnnounceHandler > ,
105
100
scrape_handler : Arc < ScrapeHandler > ,
106
101
authentication_service : Arc < AuthenticationService > ,
@@ -111,7 +106,6 @@ async fn start_v1(
111
106
let server = HttpServer :: new ( Launcher :: new ( socket, tls) )
112
107
. start (
113
108
config,
114
- tracker,
115
109
announce_handler,
116
110
scrape_handler,
117
111
authentication_service,
@@ -161,7 +155,6 @@ mod tests {
161
155
start_job (
162
156
config,
163
157
Arc :: new ( cfg. core . clone ( ) ) ,
164
- app_container. tracker ,
165
158
app_container. announce_handler ,
166
159
app_container. scrape_handler ,
167
160
app_container. authentication_service ,
0 commit comments