diff options
author | Rasmus Dahlberg <rasmus@rgdd.se> | 2024-01-08 08:39:55 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@rgdd.se> | 2024-01-08 08:39:55 +0100 |
commit | 1e924b5b31fa4cfd2235b3d1329a5a86895ed977 (patch) | |
tree | 309ce1f2a35967916f6a2725b8c8e83f37adae61 | |
parent | 2bfa00660bf5c21d222dd17a27c9006c9fedf6c7 (diff) |
Use one worker per log as the default
-rw-r--r-- | cmd/silent-ctmoon/main.go | 4 |
1 files 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 } |