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 }