From 14b53523b11f5866b24356a1ff6aabeadfaa8734 Mon Sep 17 00:00:00 2001 From: 0xgouda Date: Wed, 4 Feb 2026 03:15:59 +0200 Subject: [PATCH] Fix options name `--refresh` instead of `--servers-refresh-loop-seconds` `--batching-delay` instead of `--batching-delay-ms` --- internal/cmdopts/cmdoptions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmdopts/cmdoptions.go b/internal/cmdopts/cmdoptions.go index 2e582a0f38..a542c4205a 100644 --- a/internal/cmdopts/cmdoptions.go +++ b/internal/cmdopts/cmdoptions.go @@ -207,7 +207,7 @@ 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") @@ -215,7 +215,7 @@ func (c *Options) ValidateConfig() error { // 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