mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-28 01:58:12 -07:00
hotfix: initialized scrape map
This commit is contained in:
+3
-1
@@ -75,7 +75,9 @@ func (t *Tracker) HandleAnnounce(req *chihaya.AnnounceRequest) (*chihaya.Announc
|
||||
// HandleScrape runs a ScrapeRequest through the Tracker's middleware and
|
||||
// returns the result.
|
||||
func (t *Tracker) HandleScrape(req *chihaya.ScrapeRequest) (*chihaya.ScrapeResponse, error) {
|
||||
resp := &chihaya.ScrapeResponse{}
|
||||
resp := &chihaya.ScrapeResponse{
|
||||
Files: make(map[chihaya.InfoHash]chihaya.Scrape),
|
||||
}
|
||||
err := t.handleScrape(t.cfg, req, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user