From 1e924b5b31fa4cfd2235b3d1329a5a86895ed977 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Mon, 8 Jan 2024 08:39:55 +0100 Subject: Use one worker per log as the default --- cmd/silent-ctmoon/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/silent-ctmoon/main.go b/cmd/silent-ctmoon/main.go index 823b1c7..0557621 100644 --- a/cmd/silent-ctmoon/main.go +++ b/cmd/silent-ctmoon/main.go @@ -44,7 +44,7 @@ Options: -f, --policy-file: Path to the monitor's policy file in JSON format -o, --output-file File that all output will be written to (Default: stdout) -p, --pull-interval: How often nodes are pulled for certificates (Default: 15m) - -w, --num-workers: Number of parallel workers to fetch each log with (Default: 2) + -w, --num-workers: Number of parallel workers to fetch each log with (Default: 1) ` type config struct { @@ -75,7 +75,7 @@ func configure(cmd string, args []string) (cfg config, err error) { flagopt.StringOpt(fs, &cfg.policyFile, "policy-file", "f", "") flagopt.StringOpt(fs, &cfg.outputFile, "output-file", "o", "") flagopt.DurationOpt(fs, &cfg.pullInterval, "pull-interval", "p", 15*time.Minute) - flagopt.UintOpt(fs, &cfg.numWorkers, "num-workers", "w", 2) + flagopt.UintOpt(fs, &cfg.numWorkers, "num-workers", "w", 1) if err = fs.Parse(args); err != nil { return cfg, err } -- cgit v1.2.3