Skip to content

Commit

Permalink
fix compile error after prometheus update
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Le <[email protected]>
  • Loading branch information
alexqyle committed Oct 11, 2023
1 parent 2bf3571 commit 798a23a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/compactor/background_chunks_series_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"

"github.com/prometheus/prometheus/storage"
"github.com/prometheus/prometheus/util/annotations"
)

type backgrounChunkSeriesSet struct {
Expand All @@ -26,7 +27,7 @@ func (b *backgrounChunkSeriesSet) Err() error {
return b.cs.Err()
}

func (b *backgrounChunkSeriesSet) Warnings() storage.Warnings {
func (b *backgrounChunkSeriesSet) Warnings() annotations.Annotations {
return b.cs.Warnings()
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/compactor/sharded_block_populator.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (c ShardedBlockPopulator) PopulateBlock(ctx context.Context, metrics *tsdb.
closers = append(closers, tombsr)

k, v := index.AllPostingsKey()
all, err := indexr.Postings(k, v)
all, err := indexr.Postings(ctx, k, v)
if err != nil {
return err
}
Expand Down

0 comments on commit 798a23a

Please sign in to comment.