|
@@ -130,7 +130,7 @@ type Config struct {
|
|
|
|
|
|
|
|
|
Offsets struct {
|
|
|
-
|
|
|
+
|
|
|
CommitInterval time.Duration
|
|
|
|
|
|
|
|
@@ -175,7 +175,7 @@ func NewConfig() *Config {
|
|
|
c.Consumer.MaxWaitTime = 250 * time.Millisecond
|
|
|
c.Consumer.MaxProcessingTime = 100 * time.Millisecond
|
|
|
c.Consumer.Return.Errors = false
|
|
|
- c.Consumer.Offsets.CommitInterval = 10 * time.Second
|
|
|
+ c.Consumer.Offsets.CommitInterval = 1 * time.Second
|
|
|
c.Consumer.Offsets.Initial = OffsetNewest
|
|
|
|
|
|
c.ChannelBufferSize = 256
|