@@ -19,6 +19,7 @@ use torrust_tracker_configuration::HttpTracker;
19
19
use tracing:: instrument;
20
20
21
21
use super :: make_rust_tls;
22
+ use crate :: core:: announce_handler:: AnnounceHandler ;
22
23
use crate :: core:: authentication:: service:: AuthenticationService ;
23
24
use crate :: core:: scrape_handler:: ScrapeHandler ;
24
25
use crate :: core:: statistics:: event:: sender:: Sender ;
@@ -39,6 +40,7 @@ use crate::servers::registar::ServiceRegistrationForm;
39
40
#[ instrument( skip(
40
41
config,
41
42
tracker,
43
+ announce_handler,
42
44
scrape_handler,
43
45
authentication_service,
44
46
whitelist_authorization,
@@ -48,6 +50,7 @@ use crate::servers::registar::ServiceRegistrationForm;
48
50
pub async fn start_job (
49
51
config : & HttpTracker ,
50
52
tracker : Arc < core:: Tracker > ,
53
+ announce_handler : Arc < AnnounceHandler > ,
51
54
scrape_handler : Arc < ScrapeHandler > ,
52
55
authentication_service : Arc < AuthenticationService > ,
53
56
whitelist_authorization : Arc < whitelist:: authorization:: Authorization > ,
@@ -67,6 +70,7 @@ pub async fn start_job(
67
70
socket,
68
71
tls,
69
72
tracker. clone ( ) ,
73
+ announce_handler. clone ( ) ,
70
74
scrape_handler. clone ( ) ,
71
75
authentication_service. clone ( ) ,
72
76
whitelist_authorization. clone ( ) ,
@@ -80,11 +84,21 @@ pub async fn start_job(
80
84
81
85
#[ allow( clippy:: too_many_arguments) ]
82
86
#[ allow( clippy:: async_yields_async) ]
83
- #[ instrument( skip( socket, tls, tracker, scrape_handler, whitelist_authorization, stats_event_sender, form) ) ]
87
+ #[ instrument( skip(
88
+ socket,
89
+ tls,
90
+ tracker,
91
+ announce_handler,
92
+ scrape_handler,
93
+ whitelist_authorization,
94
+ stats_event_sender,
95
+ form
96
+ ) ) ]
84
97
async fn start_v1 (
85
98
socket : SocketAddr ,
86
99
tls : Option < RustlsConfig > ,
87
100
tracker : Arc < core:: Tracker > ,
101
+ announce_handler : Arc < AnnounceHandler > ,
88
102
scrape_handler : Arc < ScrapeHandler > ,
89
103
authentication_service : Arc < AuthenticationService > ,
90
104
whitelist_authorization : Arc < whitelist:: authorization:: Authorization > ,
@@ -94,6 +108,7 @@ async fn start_v1(
94
108
let server = HttpServer :: new ( Launcher :: new ( socket, tls) )
95
109
. start (
96
110
tracker,
111
+ announce_handler,
97
112
scrape_handler,
98
113
authentication_service,
99
114
whitelist_authorization,
@@ -142,6 +157,7 @@ mod tests {
142
157
start_job (
143
158
config,
144
159
app_container. tracker ,
160
+ app_container. announce_handler ,
145
161
app_container. scrape_handler ,
146
162
app_container. authentication_service ,
147
163
app_container. whitelist_authorization ,
0 commit comments