Skip to content

Commit

Permalink
Change counter to uint64
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Petkovski <[email protected]>
  • Loading branch information
fpetkovski committed Nov 14, 2022
1 parent cbc3d23 commit 25ed544
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/store/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ type blockSeriesClient struct {
chunkFetchDuration prometheus.Histogram

// Internal state.
i int
i uint64
postings []storage.SeriesRef
chkMetas []chunks.Meta
lset labels.Labels
Expand Down Expand Up @@ -939,8 +939,8 @@ func (b *blockSeriesClient) Recv() (*storepb.SeriesResponse, error) {
func (b *blockSeriesClient) nextBatch() error {
start := b.i
end := start + SeriesBatchSize
if end > len(b.postings) {
end = len(b.postings)
if end > uint64(len(b.postings)) {
end = uint64(len(b.postings))
}
b.i = end

Expand Down

0 comments on commit 25ed544

Please sign in to comment.