From e60e25da4a5613dfa8c832d4de7b422a83e211f4 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Thu, 6 Jun 2019 16:41:45 +0000 Subject: [PATCH] Remove duplicate 'segments' flag --- extras/scanner/main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extras/scanner/main.go b/extras/scanner/main.go index c535d8939..cb4ff411f 100644 --- a/extras/scanner/main.go +++ b/extras/scanner/main.go @@ -91,7 +91,6 @@ func main() { loglevel string justBigScan bool - segments int pagesPerDot int ) @@ -108,7 +107,6 @@ func main() { flag.StringVar(&loglevel, "log-level", "info", "Debug level: debug, info, warning, error") flag.BoolVar(&justBigScan, "big-scan", false, "If true, just scan the whole index and print summaries") - flag.IntVar(&segments, "segments", 1, "Number of segments to run in parallel") flag.IntVar(&pagesPerDot, "pages-per-dot", 10, "Print a dot per N pages in DynamoDB (0 to disable)") flag.Parse() @@ -140,7 +138,7 @@ func main() { }() if justBigScan { - bigScan(dynamoDBConfig, segments, pagesPerDot) + bigScan(dynamoDBConfig, scanner.segments, pagesPerDot) return }