Skip to content

Commit 819d69e

Browse files
authored
[fileconsumer] Fix max_concurrent_files check
Resolves #35080
1 parent b3e952f commit 819d69e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/stanza/fileconsumer/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func (c Config) validate() error {
210210
return fmt.Errorf("'max_log_size' must be positive")
211211
}
212212

213-
if c.MaxConcurrentFiles <= 1 {
213+
if c.MaxConcurrentFiles < 1 {
214214
return fmt.Errorf("'max_concurrent_files' must be positive")
215215
}
216216

0 commit comments

Comments
 (0)