@@ -13,7 +13,7 @@ use crate::databases::Database;
1313use crate :: scrape_handler:: ScrapeHandler ;
1414use crate :: torrent:: manager:: TorrentsManager ;
1515use crate :: torrent:: repository:: in_memory:: InMemoryTorrentRepository ;
16- use crate :: torrent:: repository:: persisted:: DatabasePersistentTorrentRepository ;
16+ use crate :: torrent:: repository:: persisted:: DatabaseDownloadsMetricRepository ;
1717use crate :: whitelist:: authorization:: WhitelistAuthorization ;
1818use crate :: whitelist:: manager:: WhitelistManager ;
1919use crate :: whitelist:: repository:: in_memory:: InMemoryWhitelist ;
@@ -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 < DatabasePersistentTorrentRepository > ,
34+ pub db_torrent_repository : Arc < DatabaseDownloadsMetricRepository > ,
3535 pub torrents_manager : Arc < TorrentsManager > ,
3636 pub stats_repository : Arc < statistics:: repository:: Repository > ,
3737}
@@ -51,7 +51,7 @@ 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 ( DatabasePersistentTorrentRepository :: new ( & database) ) ;
54+ let db_torrent_repository = Arc :: new ( DatabaseDownloadsMetricRepository :: new ( & database) ) ;
5555
5656 let torrents_manager = Arc :: new ( TorrentsManager :: new (
5757 core_config,
0 commit comments