From ba009a9949a007a03e2e966e285f463a5ff4b758 Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Wed, 21 Feb 2024 21:51:12 +0100 Subject: Remove the setup function while we can --- scrape.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'scrape.go') diff --git a/scrape.go b/scrape.go index f09cba6..cb7f18c 100644 --- a/scrape.go +++ b/scrape.go @@ -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) -- cgit v1.2.3