Skip to content

Commit

Permalink
make it build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dieterbe committed Feb 16, 2017
1 parent 7851e7a commit 67efb37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion route/kafkamdm.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func (r *KafkaMdm) run() {
metrics := make([]*schema.MetricData, 0, r.flushMaxNum)
ticker := time.NewTicker(r.flushMaxWait)
brokers := []string{r.broker}
var err error

for r.producer == nil {
r.producer, err = sarama.NewSyncProducer(brokers, r.saramaCfg)
Expand All @@ -127,7 +128,6 @@ func (r *KafkaMdm) run() {
flush := func() {
for {
pre := time.Now()
var err error
size := 0

payload := make([]*sarama.ProducerMessage, len(metrics))
Expand Down

0 comments on commit 67efb37

Please sign in to comment.