Switch deleted torrent event

This commit is contained in:
Justin Li 2014-07-21 20:49:17 -04:00
parent 2c8894fbda
commit dc76657af3

View file

@ -88,7 +88,7 @@ func (tkr *Tracker) HandleAnnounce(ann *models.Announce, w Writer) error {
// Rather than deleting the torrent explicitly, let the tracker driver
// ensure there are no race conditions.
conn.PurgeInactiveTorrent(torrent.Infohash)
stats.RecordEvent(stats.ReapedTorrent)
stats.RecordEvent(stats.DeletedTorrent)
}
return w.WriteAnnounce(newAnnounceResponse(ann, peer, torrent))