Skip to content

Commit

Permalink
Removes split-by upstream validation (#5087)
Browse files Browse the repository at this point in the history
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
  • Loading branch information
cyriltovena authored Jan 10, 2022
1 parent d87dbf9 commit d672739
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/querier/queryrange/roundtrip.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

"github.com/cortexproject/cortex/pkg/querier/queryrange"
"github.com/go-kit/log"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/prometheus/model/labels"
"github.com/weaveworks/common/httpgrpc"
Expand All @@ -30,6 +31,16 @@ func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
cfg.Config.RegisterFlags(f)
}

// Validate validates the config.
func (cfg *Config) Validate() error {
if cfg.CacheResults {
if err := cfg.ResultsCacheConfig.Validate(); err != nil {
return errors.Wrap(err, "invalid ResultsCache config")
}
}
return nil
}

// Stopper gracefully shutdown resources created
type Stopper interface {
Stop()
Expand Down

0 comments on commit d672739

Please sign in to comment.