Skip to content

Commit

Permalink
remove split_queries_by_interval validation (#5125)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sashank Agarwal authored Jan 13, 2022
1 parent 7d50172 commit 7ff1b45
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/querier/queryrange/queryrangebase/roundtrip.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
// Validate validates the config.
func (cfg *Config) Validate() error {
if cfg.CacheResults {
if cfg.SplitQueriesByInterval <= 0 {
return errors.New("querier.cache-results may only be enabled in conjunction with querier.split-queries-by-interval. Please set the latter")
}
if err := cfg.ResultsCacheConfig.Validate(); err != nil {
return errors.Wrap(err, "invalid ResultsCache config")
}
Expand Down

0 comments on commit 7ff1b45

Please sign in to comment.