Skip to content

Commit

Permalink
Merge pull request #1589 from Shopify/diego_fix-error-message
Browse files Browse the repository at this point in the history
fix error message s/CommitInterval/AutoCommit.Interval
  • Loading branch information
d1egoaz authored Jan 29, 2020
2 parents 94173f8 + 052b850 commit 20880c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ func (c *Config) Validate() error {
case c.Consumer.Retry.Backoff < 0:
return ConfigurationError("Consumer.Retry.Backoff must be >= 0")
case c.Consumer.Offsets.AutoCommit.Interval <= 0:
return ConfigurationError("Consumer.Offsets.CommitInterval must be > 0")
return ConfigurationError("Consumer.Offsets.AutoCommit.Interval must be > 0")
case c.Consumer.Offsets.Initial != OffsetOldest && c.Consumer.Offsets.Initial != OffsetNewest:
return ConfigurationError("Consumer.Offsets.Initial must be OffsetOldest or OffsetNewest")
case c.Consumer.Offsets.Retry.Max < 0:
Expand Down

0 comments on commit 20880c3

Please sign in to comment.