Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
cyriltovena committed Sep 10, 2024
1 parent 09e320d commit c6d6be2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/kafka/ingester/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"google.golang.org/grpc"

"github.com/grafana/dskit/backoff"

"github.com/grafana/loki/v3/pkg/ingester-rf1/metastore/metastorepb"
"github.com/grafana/loki/v3/pkg/kafka"
"github.com/grafana/loki/v3/pkg/logproto"
Expand Down Expand Up @@ -190,6 +191,9 @@ func (c *consumer) appendRecords(records []record) error {

// Flush writes the accumulated data to storage and updates the metadata store
func (c *consumer) Flush() {
if c.writer.InputSize() == 0 {
return
}
if c.lastOffset == -1 {
return
}
Expand Down

0 comments on commit c6d6be2

Please sign in to comment.