Skip to content

Commit

Permalink
feat(processors.batch): make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsStegman committed Sep 11, 2024
1 parent 7e841d8 commit 2d80838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/processors/batch/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ func (b *Batch) Apply(in ...telegraf.Metric) []telegraf.Metric {
}

oldCount := b.count.Add(1) - 1
batchId := oldCount % b.NumBatches
m.AddTag(b.BatchTag, strconv.FormatUint(batchId, 10))
batchID := oldCount % b.NumBatches
m.AddTag(b.BatchTag, strconv.FormatUint(batchID, 10))
out = append(out, m)
}

Expand Down

0 comments on commit 2d80838

Please sign in to comment.