Skip to content

Commit

Permalink
Merge #6
Browse files Browse the repository at this point in the history
6: Bump deps, set default consumer offset to "oldest" r=Jaskaranbir a=Jaskaranbir



Co-authored-by: Jaskaranbir <jaskaranbir.dhillon@gmail.com>
  • Loading branch information
ninja-bruh and Jaskaranbir committed Sep 9, 2018
2 parents ef511c3 + 719035e commit e269211
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion consumer/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func New(initConfig *Config) (*Consumer, error) {
config = initConfig.SaramaConfig
} else {
config = cluster.NewConfig()
config.Consumer.Offsets.Initial = sarama.OffsetNewest
config.Consumer.Offsets.Initial = sarama.OffsetOldest
config.Consumer.MaxProcessingTime = 10 * time.Second
config.Consumer.Return.Errors = true
}
Expand Down

0 comments on commit e269211

Please sign in to comment.