Skip to content

Commit

Permalink
Reset batchSize in timer condition too
Browse files Browse the repository at this point in the history
Signed-off-by: Eugen Biegler <nupagadi@posteo.de>
  • Loading branch information
negbie committed Dec 14, 2018
1 parent 10da0b5 commit 0478b3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/promtail/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func (c *Client) run() {
if err := c.send(batch); err != nil {
level.Error(c.logger).Log("msg", "error sending batch", "error", err)
}
batchSize = 0
batch = map[model.Fingerprint]*logproto.Stream{}
}
}
Expand Down

0 comments on commit 0478b3a

Please sign in to comment.