@@ -4,7 +4,7 @@ use std::sync::Arc;
4
4
5
5
use axum_server:: tls_rustls:: RustlsConfig ;
6
6
use axum_server:: Handle ;
7
- use bittorrent_http_tracker_core:: container:: HttpTrackerContainer ;
7
+ use bittorrent_http_tracker_core:: container:: HttpTrackerCoreContainer ;
8
8
use derive_more:: Constructor ;
9
9
use futures:: future:: BoxFuture ;
10
10
use tokio:: sync:: oneshot:: { Receiver , Sender } ;
@@ -45,7 +45,7 @@ impl Launcher {
45
45
#[ instrument( skip( self , http_tracker_container, tx_start, rx_halt) ) ]
46
46
fn start (
47
47
& self ,
48
- http_tracker_container : Arc < HttpTrackerContainer > ,
48
+ http_tracker_container : Arc < HttpTrackerCoreContainer > ,
49
49
tx_start : Sender < Started > ,
50
50
rx_halt : Receiver < Halted > ,
51
51
) -> BoxFuture < ' static , ( ) > {
@@ -160,7 +160,7 @@ impl HttpServer<Stopped> {
160
160
/// back to the main thread.
161
161
pub async fn start (
162
162
self ,
163
- http_tracker_container : Arc < HttpTrackerContainer > ,
163
+ http_tracker_container : Arc < HttpTrackerCoreContainer > ,
164
164
form : ServiceRegistrationForm ,
165
165
) -> Result < HttpServer < Running > , Error > {
166
166
let ( tx_start, rx_start) = tokio:: sync:: oneshot:: channel :: < Started > ( ) ;
@@ -238,7 +238,7 @@ pub fn check_fn(binding: &SocketAddr) -> ServiceHealthCheckJob {
238
238
mod tests {
239
239
use std:: sync:: Arc ;
240
240
241
- use bittorrent_http_tracker_core:: container:: HttpTrackerContainer ;
241
+ use bittorrent_http_tracker_core:: container:: HttpTrackerCoreContainer ;
242
242
use bittorrent_tracker_core:: announce_handler:: AnnounceHandler ;
243
243
use bittorrent_tracker_core:: authentication:: key:: repository:: in_memory:: InMemoryKeyRepository ;
244
244
use bittorrent_tracker_core:: authentication:: service;
@@ -255,7 +255,7 @@ mod tests {
255
255
256
256
use crate :: server:: { HttpServer , Launcher } ;
257
257
258
- pub fn initialize_container ( configuration : & Configuration ) -> HttpTrackerContainer {
258
+ pub fn initialize_container ( configuration : & Configuration ) -> HttpTrackerCoreContainer {
259
259
let core_config = Arc :: new ( configuration. core . clone ( ) ) ;
260
260
261
261
let http_trackers = configuration
@@ -293,7 +293,7 @@ mod tests {
293
293
294
294
let scrape_handler = Arc :: new ( ScrapeHandler :: new ( & whitelist_authorization, & in_memory_torrent_repository) ) ;
295
295
296
- HttpTrackerContainer {
296
+ HttpTrackerCoreContainer {
297
297
core_config,
298
298
announce_handler,
299
299
scrape_handler,
0 commit comments