mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-29 00:50:02 -07:00
Remove unkeyed composite literals.
This was done to keep in accordance with `go vet`.
This commit is contained in:
@@ -84,7 +84,9 @@ func TestTorrentPurging(t *testing.T) {
|
||||
|
||||
func TestStalePeerPurging(t *testing.T) {
|
||||
cfg := config.DefaultConfig
|
||||
cfg.Announce = config.Duration{10 * time.Millisecond}
|
||||
cfg.Announce = config.Duration{
|
||||
Duration: 10 * time.Millisecond,
|
||||
}
|
||||
|
||||
srv, err := setupTracker(&cfg)
|
||||
if err != nil {
|
||||
|
||||
@@ -24,5 +24,7 @@ func (tkr *Tracker) HandleScrape(scrape *models.Scrape, w Writer) (err error) {
|
||||
torrents = append(torrents, torrent)
|
||||
}
|
||||
|
||||
return w.WriteScrape(&models.ScrapeResponse{torrents})
|
||||
return w.WriteScrape(&models.ScrapeResponse{
|
||||
Files: torrents,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user