Skip to content

Commit

Permalink
Remove unused parameter on collector.fetch()
Browse files Browse the repository at this point in the history
  • Loading branch information
gsoec committed May 8, 2018
1 parent 62981cd commit bd7345b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions colly.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,10 +504,10 @@ func (c *Collector) scrape(u, method string, depth int, requestData io.Reader, c
u = parsedURL.String()
c.wg.Add(1)
if c.Async {
go c.fetch(u, method, depth, requestData, ctx, hdr, checkRevisit, req)
go c.fetch(u, method, depth, requestData, ctx, hdr, req)
return nil
}
return c.fetch(u, method, depth, requestData, ctx, hdr, checkRevisit, req)
return c.fetch(u, method, depth, requestData, ctx, hdr, req)
}

func setRequestBody(req *http.Request, body io.Reader) {
Expand Down Expand Up @@ -542,7 +542,7 @@ func setRequestBody(req *http.Request, body io.Reader) {
}
}

func (c *Collector) fetch(u, method string, depth int, requestData io.Reader, ctx *Context, hdr http.Header, checkRevisit bool, req *http.Request) error {
func (c *Collector) fetch(u, method string, depth int, requestData io.Reader, ctx *Context, hdr http.Header, req *http.Request) error {
defer c.wg.Done()
if ctx == nil {
ctx = NewContext()
Expand Down

0 comments on commit bd7345b

Please sign in to comment.