Fix New function

This commit is contained in:
Alexander Sheiko 2020-12-12 23:45:14 +02:00
parent 6bf65cd482
commit c299d7f479

View file

@ -16,11 +16,11 @@ type Scraper struct {
includeReplies bool
}
var defaultScraper Scraper
var defaultScraper *Scraper
// New creates a Scraper object
func New() Scraper {
return Scraper{
func New() *Scraper {
return &Scraper{
client: &http.Client{Timeout: 10 * time.Second},
}
}