Skip to content

Commit

Permalink
fix/condition for parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
bmiguel-teixeira committed Nov 26, 2024
1 parent 616e429 commit cdf015d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/prometheusremotewriteexporter/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ var _ component.Config = (*Config)(nil)

// Validate checks if the exporter configuration is valid
func (cfg *Config) Validate() error {
if cfg.MaxBatchRequestParallelism <= 0 {
if cfg.MaxBatchRequestParallelism <= 1 {
return fmt.Errorf("max_batch_request_parallelism can't be set to below 1")
}

Expand Down

0 comments on commit cdf015d

Please sign in to comment.