Skip to content

Commit

Permalink
[Chore] return nil when inmemory index cache init fail (#6246)
Browse files Browse the repository at this point in the history
  • Loading branch information
SungJin1212 authored Sep 30, 2024
1 parent ff782ca commit 6a7f44c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/tsdb/index_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func NewIndexCache(cfg IndexCacheConfig, logger log.Logger, registerer prometheu
case IndexCacheBackendInMemory:
c, err := newInMemoryIndexCache(cfg.InMemory, logger, iReg)
if err != nil {
return c, err
return nil, err
}
caches = append(caches, c)
enabledItems = append(enabledItems, cfg.InMemory.EnabledItems)
Expand Down

0 comments on commit 6a7f44c

Please sign in to comment.