Skip to content

Commit

Permalink
Updating offset correctly (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkurzeja authored and nrwiersma committed Aug 3, 2018
1 parent 3557fea commit 114359b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kafka/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ func (s *Source) markState(msg *sarama.ConsumerMessage) []marker {
s.state[msg.Topic] = partitions
}

partitions[msg.Partition] = msg.Offset

var markers []marker
for topic, partitions := range s.state {
for partition, offset := range partitions {
Expand Down

0 comments on commit 114359b

Please sign in to comment.