@@ -31,7 +31,7 @@ pub struct TrackerCoreContainer {
3131 pub whitelist_authorization : Arc < whitelist:: authorization:: WhitelistAuthorization > ,
3232 pub whitelist_manager : Arc < WhitelistManager > ,
3333 pub in_memory_torrent_repository : Arc < InMemoryTorrentRepository > ,
34- pub db_torrent_repository : Arc < DatabaseDownloadsMetricRepository > ,
34+ pub db_downloads_metric_repository : Arc < DatabaseDownloadsMetricRepository > ,
3535 pub torrents_manager : Arc < TorrentsManager > ,
3636 pub stats_repository : Arc < statistics:: repository:: Repository > ,
3737}
@@ -51,12 +51,12 @@ impl TrackerCoreContainer {
5151 & in_memory_key_repository. clone ( ) ,
5252 ) ) ;
5353 let in_memory_torrent_repository = Arc :: new ( InMemoryTorrentRepository :: new ( torrent_repository_container. swarms . clone ( ) ) ) ;
54- let db_torrent_repository = Arc :: new ( DatabaseDownloadsMetricRepository :: new ( & database) ) ;
54+ let db_downloads_metric_repository = Arc :: new ( DatabaseDownloadsMetricRepository :: new ( & database) ) ;
5555
5656 let torrents_manager = Arc :: new ( TorrentsManager :: new (
5757 core_config,
5858 & in_memory_torrent_repository,
59- & db_torrent_repository ,
59+ & db_downloads_metric_repository ,
6060 ) ) ;
6161
6262 let stats_repository = Arc :: new ( statistics:: repository:: Repository :: new ( ) ) ;
@@ -65,7 +65,7 @@ impl TrackerCoreContainer {
6565 core_config,
6666 & whitelist_authorization,
6767 & in_memory_torrent_repository,
68- & db_torrent_repository ,
68+ & db_downloads_metric_repository ,
6969 ) ) ;
7070
7171 let scrape_handler = Arc :: new ( ScrapeHandler :: new ( & whitelist_authorization, & in_memory_torrent_repository) ) ;
@@ -81,7 +81,7 @@ impl TrackerCoreContainer {
8181 whitelist_authorization,
8282 whitelist_manager,
8383 in_memory_torrent_repository,
84- db_torrent_repository ,
84+ db_downloads_metric_repository ,
8585 torrents_manager,
8686 stats_repository,
8787 }
0 commit comments