Skip to content

Commit

Permalink
Merge pull request gocolly#182 from nange/master
Browse files Browse the repository at this point in the history
Don't share wg field in Collector.Clone function
  • Loading branch information
asciimoo authored Jul 4, 2018
2 parents dc3a35f + 6ddb8e2 commit f9e277f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colly.go
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ func (c *Collector) Clone() *Collector {
requestCallbacks: make([]RequestCallback, 0, 8),
responseCallbacks: make([]ResponseCallback, 0, 8),
robotsMap: c.robotsMap,
wg: c.wg,
wg: &sync.WaitGroup{},
}
}

Expand Down

0 comments on commit f9e277f

Please sign in to comment.