Skip to content

Commit

Permalink
(f) typo "elastic"
Browse files Browse the repository at this point in the history
  • Loading branch information
ont committed Mar 28, 2018
1 parent 0a7a45b commit ff2f895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flux/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (w *Worker) Start() {
w.Process(line)

case <-tick:
w.Flush() // send bulk query to elasticsearch every tick event
w.Flush() // send bulk query to influx every tick event
}
}
}
Expand Down Expand Up @@ -156,7 +156,7 @@ func (w *Worker) AddPoint(metric *Metric, tags map[string]string, values map[str
}

func (w *Worker) Flush() {
log.WithField("count", len(w.batch.Points())).Debug("flushing to elastic search")
log.WithField("count", len(w.batch.Points())).Debug("flushing to influx")

if err := w.client.Write(w.batch); err != nil {
log.WithError(err).Error("can't write batch to influx, dropping batch...")
Expand Down

0 comments on commit ff2f895

Please sign in to comment.