Skip to content

Commit

Permalink
[fileconsumer] Fix max_concurrent_files check
Browse files Browse the repository at this point in the history
Resolves #35080
  • Loading branch information
djaglowski authored Sep 9, 2024
1 parent b3e952f commit 819d69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/stanza/fileconsumer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit 819d69e

Please sign in to comment.