Skip to content

Commit

Permalink
Use >= for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonip committed Nov 16, 2024
1 parent 2ab7b3d commit 96ed837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/elasticsearchexporter/bulkindexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (s *syncBulkIndexerSession) Add(ctx context.Context, index string, document
if err != nil {
return err
}
if s.bi.Len() > s.s.flushBytes {
if s.bi.Len() >= s.s.flushBytes {
return s.Flush(ctx)
}
return nil
Expand Down

0 comments on commit 96ed837

Please sign in to comment.