Skip to content

Commit 878bcf0

Browse files
author
Thor
committed
don't stop stores if nil
Signed-off-by: Thor <thansen@digitalocean.com>
1 parent 80c8952 commit 878bcf0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cortex/modules.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ func (t *Cortex) initStore(cfg *Config) (err error) {
277277
}
278278

279279
func (t *Cortex) stopStore() error {
280-
t.store.Stop()
280+
if t.store != nil {
281+
t.store.Stop()
282+
}
281283
return nil
282284
}
283285

0 commit comments

Comments
 (0)