Skip to content

Commit e107614

Browse files
committed
chore: [torrust#1543] remove comment on tracker-core handle_announcement
We need to load the number of downloads for the torrent before adding it to the active swarms becuase the scrape response includes the number of downloads, and that number should included all downloads ever.
1 parent 3d6fc65 commit e107614

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/tracker-core/src/announce_handler.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,6 @@ impl AnnounceHandler {
163163
) -> Result<AnnounceData, AnnounceError> {
164164
self.whitelist_authorization.authorize(info_hash).await?;
165165

166-
// This will be removed in the future.
167-
// See https://github.com/torrust/torrust-tracker/issues/1502
168-
// There will be a persisted metric for counting the total number of
169-
// downloads across all torrents. The in-memory metric will count only
170-
// the number of downloads during the current tracker uptime.
171166
let opt_persistent_torrent = if self.config.tracker_policy.persistent_torrent_completed_stat {
172167
self.db_downloads_metric_repository.load_torrent_downloads(info_hash)?
173168
} else {

0 commit comments

Comments
 (0)