Skip to content

Commit

Permalink
refactor: set default workers count to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmethakanbesel committed Jan 13, 2024
1 parent 35e3fbc commit 2ca707d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tefas/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ type Scraper struct {
var _ scraper.Scraper = (*Scraper)(nil)

func NewScraper(options ...func(*Scraper)) *Scraper {
s := &Scraper{}
s := &Scraper{
workers: 5,
}
for _, o := range options {
o(s)
}
Expand Down
4 changes: 3 additions & 1 deletion yahoo/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ type Scraper struct {
var _ scraper.Scraper = (*Scraper)(nil)

func NewScraper(options ...func(*Scraper)) *Scraper {
s := &Scraper{}
s := &Scraper{
workers: 5,
}
for _, o := range options {
o(s)
}
Expand Down

0 comments on commit 2ca707d

Please sign in to comment.