From 052b8500ca4221a75be3ecbab0bdfbfaebe1a884 Mon Sep 17 00:00:00 2001 From: Diego Alvarez Date: Wed, 29 Jan 2020 11:46:06 -0500 Subject: [PATCH] fix error message s/CommitInterval/AutoCommit.Interval --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 382a3442a..5ee83f774 100644 --- a/config.go +++ b/config.go @@ -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: