Fix New function
This commit is contained in:
parent
6bf65cd482
commit
c299d7f479
1 changed files with 3 additions and 3 deletions
|
|
@ -16,11 +16,11 @@ type Scraper struct {
|
||||||
includeReplies bool
|
includeReplies bool
|
||||||
}
|
}
|
||||||
|
|
||||||
var defaultScraper Scraper
|
var defaultScraper *Scraper
|
||||||
|
|
||||||
// New creates a Scraper object
|
// New creates a Scraper object
|
||||||
func New() Scraper {
|
func New() *Scraper {
|
||||||
return Scraper{
|
return &Scraper{
|
||||||
client: &http.Client{Timeout: 10 * time.Second},
|
client: &http.Client{Timeout: 10 * time.Second},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue