diff options
| author | Philipp Tanlak <philipp.tanlak@gmail.com> | 2024-02-21 21:51:12 +0100 |
|---|---|---|
| committer | Philipp Tanlak <philipp.tanlak@gmail.com> | 2024-02-21 21:51:12 +0100 |
| commit | ba009a9949a007a03e2e966e285f463a5ff4b758 (patch) | |
| tree | 69b3d0df3fa83814cdbc2043a0e40aabee7abfe6 /scrape.go | |
| parent | e2e0ed8fa7d26a23f77b378907b3f902be9e028e (diff) | |
Remove the setup function while we can
Diffstat (limited to 'scrape.go')
| -rw-r--r-- | scrape.go | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -53,7 +53,6 @@ func NewScraper() *Scraper { type Scraper struct { ScrapeFunc ScrapeFunc - SetupFunc func() Script string Modules []Module Client *http.Client @@ -97,10 +96,6 @@ func (s *Scraper) Run() { } } - if s.SetupFunc != nil { - s.SetupFunc() - } - go s.scrape() s.wg.Wait() close(s.jobs) |