Skip to content

Commit

Permalink
set loader for local store
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwanthgoli committed Oct 29, 2024
1 parent e9eedce commit b4350ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/ruler/base/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ func NewLegacyRuleStore(cfg RuleStoreConfig, hedgeCfg hedging.Config, clientMetr
// NewRuleStore returns a rule store backend client based on the provided cfg.
func NewRuleStore(ctx context.Context, cfg rulestore.Config, cfgProvider bucket.SSEConfigProvider, loader promRules.GroupLoader, logger log.Logger) (rulestore.RuleStore, error) {
if cfg.Backend == local.Name {
if loader == nil {
loader = promRules.FileLoader{}
}
return local.NewLocalRulesClient(cfg.Local, loader)
}

Expand Down

0 comments on commit b4350ea

Please sign in to comment.