@@ -6,7 +6,6 @@ use serde_derive::{Deserialize, Serialize};
66use url:: Url ;
77
88use super :: category:: DbCategoryRepository ;
9- use super :: user:: DbUserRepository ;
109use crate :: config:: { Configuration , TrackerMode } ;
1110use crate :: databases:: database:: { Database , Error , Sorting } ;
1211use crate :: errors:: ServiceError ;
@@ -17,6 +16,7 @@ use crate::models::torrent::{Metadata, TorrentId, TorrentListing};
1716use crate :: models:: torrent_file:: { DbTorrent , Torrent , TorrentFile } ;
1817use crate :: models:: torrent_tag:: { TagId , TorrentTag } ;
1918use crate :: models:: user:: UserId ;
19+ use crate :: services:: user:: Repository ;
2020use crate :: tracker:: statistics_importer:: StatisticsImporter ;
2121use crate :: utils:: parse_torrent:: decode_and_validate_torrent_file;
2222use crate :: { tracker, AsCSV } ;
@@ -25,7 +25,7 @@ pub struct Index {
2525 configuration : Arc < Configuration > ,
2626 tracker_statistics_importer : Arc < StatisticsImporter > ,
2727 tracker_service : Arc < tracker:: service:: Service > ,
28- user_repository : Arc < DbUserRepository > ,
28+ user_repository : Arc < Box < dyn Repository > > ,
2929 category_repository : Arc < DbCategoryRepository > ,
3030 torrent_repository : Arc < DbTorrentRepository > ,
3131 torrent_info_hash_repository : Arc < DbCanonicalInfoHashGroupRepository > ,
@@ -81,7 +81,7 @@ impl Index {
8181 configuration : Arc < Configuration > ,
8282 tracker_statistics_importer : Arc < StatisticsImporter > ,
8383 tracker_service : Arc < tracker:: service:: Service > ,
84- user_repository : Arc < DbUserRepository > ,
84+ user_repository : Arc < Box < dyn Repository > > ,
8585 category_repository : Arc < DbCategoryRepository > ,
8686 torrent_repository : Arc < DbTorrentRepository > ,
8787 torrent_info_hash_repository : Arc < DbCanonicalInfoHashGroupRepository > ,
0 commit comments