From 819d69eece6a9d352f213291c522c0f3d4bd49b1 Mon Sep 17 00:00:00 2001 From: Daniel Jaglowski Date: Mon, 9 Sep 2024 15:32:57 -0500 Subject: [PATCH] [fileconsumer] Fix max_concurrent_files check Resolves #35080 --- pkg/stanza/fileconsumer/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/fileconsumer/config.go b/pkg/stanza/fileconsumer/config.go index 967e4d683daf..2eec1b6b2e79 100644 --- a/pkg/stanza/fileconsumer/config.go +++ b/pkg/stanza/fileconsumer/config.go @@ -210,7 +210,7 @@ func (c Config) validate() error { return fmt.Errorf("'max_log_size' must be positive") } - if c.MaxConcurrentFiles <= 1 { + if c.MaxConcurrentFiles < 1 { return fmt.Errorf("'max_concurrent_files' must be positive") }