Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/cmdopts/cmdoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,15 @@ func (c *Options) ValidateConfig() error {
c.Metrics.Metrics = c.Sources.Sources
}
if c.Sources.Refresh <= 1 {
return errors.New("--servers-refresh-loop-seconds must be greater than 1")
return errors.New("--refresh must be greater than 1")
}
if c.Sources.MaxParallelConnectionsPerDb < 1 {
return errors.New("--max-parallel-connections-per-db must be >= 1")
}

// validate that input is boolean is set
if c.Sinks.BatchingDelay <= 0 || c.Sinks.BatchingDelay > time.Hour {
return errors.New("--batching-delay-ms must be between 0 and 1h")
return errors.New("--batching-delay must be between 0 and 1h")
}

return nil
Expand Down
Loading