Skip to content

Commit

Permalink
query: use storepb.SeriesServer (thanos-io#6334)
Browse files Browse the repository at this point in the history
Use storepb.SeriesServer instead of the concrete struct. This allows
implementing functionality on top of the proxy.

Signed-off-by: Giedrius Statkevičius <[email protected]>
  • Loading branch information
GiedriusS authored and HC Zhu committed Jun 27, 2023
1 parent e7af545 commit 04e3391
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/query/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type QueryableCreator func(
func NewQueryableCreator(
logger log.Logger,
reg prometheus.Registerer,
proxy *store.ProxyStore,
proxy storepb.StoreServer,
maxConcurrentSelects int,
selectTimeout time.Duration,
) QueryableCreator {
Expand Down Expand Up @@ -102,7 +102,7 @@ type queryable struct {
logger log.Logger
replicaLabels []string
storeDebugMatchers [][]*labels.Matcher
proxy *store.ProxyStore
proxy storepb.StoreServer
deduplicate bool
maxResolutionMillis int64
partialResponse bool
Expand All @@ -127,7 +127,7 @@ type querier struct {
mint, maxt int64
replicaLabels []string
storeDebugMatchers [][]*labels.Matcher
proxy *store.ProxyStore
proxy storepb.StoreServer
deduplicate bool
maxResolutionMillis int64
partialResponseStrategy storepb.PartialResponseStrategy
Expand All @@ -148,7 +148,7 @@ func newQuerier(
maxt int64,
replicaLabels []string,
storeDebugMatchers [][]*labels.Matcher,
proxy *store.ProxyStore,
proxy storepb.StoreServer,
deduplicate bool,
maxResolutionMillis int64,
partialResponse,
Expand Down

0 comments on commit 04e3391

Please sign in to comment.