Skip to content

Commit

Permalink
closes #2 add timestamps to Kafka messages
Browse files Browse the repository at this point in the history
- We now set the version of our producer to 0.10 so that a timestamp
  is actually added to the messages.
  • Loading branch information
Max Jonas Werner committed Jan 20, 2017
1 parent 0e3de9d commit 2643bbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions publisher/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func Publish(trackingChannel <-chan *models.TrackingObject, kafkaHost *string, k
kafkaConfig.Producer.Return.Errors = true
kafkaConfig.Producer.Return.Successes = true
kafkaConfig.Producer.RequiredAcks = sarama.WaitForLocal
kafkaConfig.Version = sarama.V0_10_0_0
var producer sarama.AsyncProducer
err := justlib.Try(7, 10*time.Second, func() error {
var err error
Expand Down

0 comments on commit 2643bbd

Please sign in to comment.