Move AnnounceResponse and ScrapeResponse to models

This commit is contained in:
Justin Li
2014-07-17 01:10:50 -04:00
parent 3ad3f11b2c
commit 9dde295b7c
6 changed files with 33 additions and 42 deletions
+1 -1
View File
@@ -36,5 +36,5 @@ func (t *Tracker) HandleScrape(scrape *models.Scrape, w Writer) error {
torrents = append(torrents, torrent)
}
return w.WriteScrape(&ScrapeResponse{torrents})
return w.WriteScrape(&models.ScrapeResponse{torrents})
}