(ctx context.Context)
| 20 | } |
| 21 | |
| 22 | func ExtractBlocksFromContext(ctx context.Context) ([]*bucketindex.Block, bool) { |
| 23 | if blocks := ctx.Value(blockCtxKey); blocks != nil { |
| 24 | return blocks.([]*bucketindex.Block), true |
| 25 | } |
| 26 | |
| 27 | return nil, false |
| 28 | } |
| 29 | |
| 30 | func convertMatchersToLabelMatcher(matchers []*labels.Matcher) []storepb.LabelMatcher { |
| 31 | var converted []storepb.LabelMatcher |