Skip to content

Commit

Permalink
hot fix: fix unit test failure introduced by segmentio#424
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve van Loben Sels committed Apr 6, 2020
1 parent c0cc0f5 commit fae139e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consumergroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func (config *ConsumerGroupConfig) Validate() error {
return errors.New(fmt.Sprintf("JoinGroupBackoff out of bounds: %d", config.JoinGroupBackoff))
}

if config.RetentionTime < defaultRetentionTime {
if config.RetentionTime < 0 && config.RetentionTime != defaultRetentionTime {
return errors.New(fmt.Sprintf("RetentionTime out of bounds: %d", config.RetentionTime))
}

Expand Down

0 comments on commit fae139e

Please sign in to comment.