We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26db1e1 commit cc47529Copy full SHA for cc47529
1 file changed
internal/cmdopts/cmdoptions.go
@@ -207,15 +207,15 @@ func (c *Options) ValidateConfig() error {
207
c.Metrics.Metrics = c.Sources.Sources
208
}
209
if c.Sources.Refresh <= 1 {
210
- return errors.New("--servers-refresh-loop-seconds must be greater than 1")
+ return errors.New("--refresh must be greater than 1")
211
212
if c.Sources.MaxParallelConnectionsPerDb < 1 {
213
return errors.New("--max-parallel-connections-per-db must be >= 1")
214
215
216
// validate that input is boolean is set
217
if c.Sinks.BatchingDelay <= 0 || c.Sinks.BatchingDelay > time.Hour {
218
- return errors.New("--batching-delay-ms must be between 0 and 1h")
+ return errors.New("--batching-delay must be between 0 and 1h")
219
220
221
return nil
0 commit comments