Browse Source

Permit configuring MaxRetries > 1

Evan Huus 11 years ago
parent
commit
86e84da2d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      producer.go

+ 1 - 1
producer.go

@@ -96,7 +96,7 @@ func (config *ProducerConfig) Validate() error {
 		return ConfigurationError("Invalid RetryBackoff")
 	}
 
-	if config.MaxRetries < 0 || config.MaxRetries > 1 {
+	if config.MaxRetries < 0 {
 		return ConfigurationError("Invalid MaxRetries")
 	}