2
0
mirror of synced 2025-02-23 22:28:11 +00:00

Suppress tracker scraping errors until I decide what to do with them

They're not really necessary, but I had them enabled while I rewrote the tracker scraper code.
This commit is contained in:
Matt Joiner 2016-06-18 17:23:53 +10:00
parent 1b3e37b9ed
commit 9b48d0c7a5

View File

@ -47,7 +47,7 @@ func (me *trackerScraper) announce() time.Duration {
me.t.cl.mu.Unlock() me.t.cl.mu.Unlock()
res, err := tracker.AnnounceHost(urlToUse, &req, host) res, err := tracker.AnnounceHost(urlToUse, &req, host)
if err != nil { if err != nil {
log.Printf("error announcing %s %q to %q: %s", me.t.InfoHash().HexString(), me.t.Name(), me.url, err) // log.Printf("error announcing %s %q to %q: %s", me.t.InfoHash().HexString(), me.t.Name(), me.url, err)
return 5 * time.Minute return 5 * time.Minute
} }
me.t.AddPeers(trackerToTorrentPeers(res.Peers)) me.t.AddPeers(trackerToTorrentPeers(res.Peers))