Skip to content

Commit 20db2ea

Browse files
committed
make run user index update loop when sharding disable
Signed-off-by: SungJin1212 <[email protected]>
1 parent 2f9ddb2 commit 20db2ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/alertmanager/multitenant.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ func (am *MultitenantAlertmanager) run(ctx context.Context) error {
670670
ringTickerChan = ringTicker.C
671671
}
672672

673-
if am.cfg.ShardingEnabled && am.userIndexUpdater != nil {
673+
if am.userIndexUpdater != nil {
674674
go am.userIndexUpdateLoop(ctx)
675675
}
676676

pkg/ruler/ruler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ func (r *Ruler) run(ctx context.Context) error {
697697
ringTickerChan = ringTicker.C
698698
}
699699

700-
if r.cfg.EnableSharding && r.userIndexUpdater != nil {
700+
if r.userIndexUpdater != nil {
701701
go r.userIndexUpdateLoop(ctx)
702702
}
703703

0 commit comments

Comments
 (0)