|
@@ -28,8 +28,8 @@ type ProducerConfig struct {
|
|
|
MaxMessageBytes int
|
|
|
MaxMessagesPerReq int
|
|
|
ChannelBufferSize int
|
|
|
- RetryBackoff time.Duration
|
|
|
- MaxRetries int
|
|
|
+ RetryBackoff time.Duration
|
|
|
+ MaxRetries int
|
|
|
}
|
|
|
|
|
|
|
|
@@ -39,9 +39,9 @@ func NewProducerConfig() *ProducerConfig {
|
|
|
RequiredAcks: WaitForLocal,
|
|
|
MaxMessageBytes: 1000000,
|
|
|
ChannelBufferSize: 256,
|
|
|
- RetryBackoff: 250 * time.Millisecond,
|
|
|
+ RetryBackoff: 100 * time.Millisecond,
|
|
|
Timeout: 10 * time.Second,
|
|
|
- MaxRetries: 1,
|
|
|
+ MaxRetries: 3,
|
|
|
}
|
|
|
}
|
|
|
|