@@ -66,13 +66,6 @@ async fn load_data_from_database(config: &Configuration, app_container: &Arc<App
6666 load_peer_keys ( config, app_container) . await ;
6767 load_whitelisted_torrents ( config, app_container) . await ;
6868 load_torrent_metrics ( config, app_container) . await ;
69-
70- // todo: disabled because of performance issues.
71- // The tracker demo has a lot of torrents and loading them all at once is not
72- // efficient. We also load them on demand but the total number of downloads
73- // metric is not accurate because not all torrents are loaded.
74- // See: https://github.com/torrust/torrust-tracker/issues/1510
75- //load_torrents_from_database(config, app_container);
7669}
7770
7871async fn start_jobs ( config : & Configuration , app_container : & Arc < AppContainer > ) -> JobManager {
@@ -127,18 +120,6 @@ async fn load_whitelisted_torrents(config: &Configuration, app_container: &Arc<A
127120 }
128121}
129122
130- #[ allow( dead_code) ]
131- fn load_torrents_from_database ( config : & Configuration , app_container : & Arc < AppContainer > ) {
132- if config. core . tracker_policy . persistent_torrent_completed_stat {
133- app_container
134- . tracker_core_container
135- . torrents_manager
136- . load_torrents_from_database ( )
137- . expect ( "Could not load torrents from database." ) ;
138- }
139- }
140-
141- #[ allow( dead_code) ]
142123async fn load_torrent_metrics ( config : & Configuration , app_container : & Arc < AppContainer > ) {
143124 if config. core . tracker_policy . persistent_torrent_completed_stat {
144125 bittorrent_tracker_core:: statistics:: persisted:: load_persisted_metrics (
0 commit comments