aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/options/options.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/options/options.go b/internal/options/options.go
index d01ba83..9e1a653 100644
--- a/internal/options/options.go
+++ b/internal/options/options.go
@@ -21,6 +21,7 @@ type Options struct {
CheckerDomain string
CheckerInterval time.Duration
MetricsInterval time.Duration
+ Limit int
}
func Parse() (opts Options) {
@@ -36,6 +37,7 @@ func Parse() (opts Options) {
flag.StringVar(&opts.CheckerDomain, "c", "", "domain with onion location for setup santity-checks")
flag.DurationVar(&opts.CheckerInterval, "C", 10*time.Second, "how often to to run checker")
flag.DurationVar(&opts.MetricsInterval, "m", 5*time.Second, "how often to emit metrics")
+ flag.IntVar(&opts.Limit, "l", 10, "rate-limit that kicks in before feeding workers in reads/s")
flag.Parse()
return