Skip to content

Commit a4a2d67

Browse files
committedJan 23, 2025
refactor: [torrust#1201] remove pub fn from tracker
1 parent 6fb632e commit a4a2d67

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed
 

‎src/core/mod.rs

+1-13
Original file line numberDiff line numberDiff line change
@@ -666,18 +666,6 @@ impl Tracker {
666666
self.in_memory_torrent_repository.get_swarm_metadata(info_hash)
667667
}
668668

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-
681669
/// # Context: Tracker
682670
///
683671
/// Get torrent peers for a given torrent and client.
@@ -1543,7 +1531,7 @@ mod tests {
15431531
// Remove the newly updated torrent from memory
15441532
let _unused = tracker.in_memory_torrent_repository.remove(&info_hash);
15451533

1546-
tracker.load_torrents_from_database().unwrap();
1534+
tracker.torrents_manager.load_torrents_from_database().unwrap();
15471535

15481536
let torrent_entry = tracker
15491537
.in_memory_torrent_repository

0 commit comments

Comments
 (0)