File tree 1 file changed +1
-13
lines changed
1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -666,18 +666,6 @@ impl Tracker {
666
666
self . in_memory_torrent_repository . get_swarm_metadata ( info_hash)
667
667
}
668
668
669
- /// It loads the torrents from database into memory. It only loads the torrent entry list with the number of seeders for each torrent.
670
- /// Peers data is not persisted.
671
- ///
672
- /// # Context: Tracker
673
- ///
674
- /// # Errors
675
- ///
676
- /// Will return a `database::Error` if unable to load the list of `persistent_torrents` from the database.
677
- pub fn load_torrents_from_database ( & self ) -> Result < ( ) , databases:: error:: Error > {
678
- self . torrents_manager . load_torrents_from_database ( )
679
- }
680
-
681
669
/// # Context: Tracker
682
670
///
683
671
/// Get torrent peers for a given torrent and client.
@@ -1543,7 +1531,7 @@ mod tests {
1543
1531
// Remove the newly updated torrent from memory
1544
1532
let _unused = tracker. in_memory_torrent_repository . remove ( & info_hash) ;
1545
1533
1546
- tracker. load_torrents_from_database ( ) . unwrap ( ) ;
1534
+ tracker. torrents_manager . load_torrents_from_database ( ) . unwrap ( ) ;
1547
1535
1548
1536
let torrent_entry = tracker
1549
1537
. in_memory_torrent_repository
You can’t perform that action at this time.
0 commit comments