From 1a9af21755a78bb8689bd1f3830239f81dadc324 Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Thu, 17 Aug 2023 20:31:44 +0200 Subject: refactor --- cmd/flyscrape/run.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'cmd') diff --git a/cmd/flyscrape/run.go b/cmd/flyscrape/run.go index 9a2a7bb..2d76a35 100644 --- a/cmd/flyscrape/run.go +++ b/cmd/flyscrape/run.go @@ -14,7 +14,6 @@ type RunCommand struct{} func (c *RunCommand) Run(args []string) error { fs := flag.NewFlagSet("flyscrape-run", flag.ContinueOnError) - concurrent := fs.Int("concurrent", 0, "concurrency") noPrettyPrint := fs.Bool("no-pretty-print", false, "no-pretty-print") fs.Usage = c.Usage @@ -40,7 +39,6 @@ func (c *RunCommand) Run(args []string) error { svc := flyscrape.Scraper{ ScrapeOptions: opts, ScrapeFunc: scrape, - Concurrency: *concurrent, } count := 0 @@ -76,9 +74,6 @@ Usage: Arguments: - -concurrent NUM - Determines the number of concurrent requests. - -no-pretty-print Disables pretty printing of scrape results. -- cgit v1.2.3