Skip to content

Commit 8b55f90

Browse files
committed
Minor refactor
Signed-off-by: Wilbert Guo <wilbeguo@amazon.com>
1 parent 77583b3 commit 8b55f90

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/ruler/ruler.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1326,8 +1326,7 @@ func (r *Ruler) ruleGroupListToGroupStateDesc(userID string, backupGroups rulesp
13261326
}
13271327

13281328
func (r *Ruler) getShardSizeForUser(userID string) int {
1329-
rulerTenantShardSize := r.limits.RulerTenantShardSize(userID)
1330-
newShardSize := util.DynamicShardSize(rulerTenantShardSize, r.ring.InstancesCount())
1329+
newShardSize := util.DynamicShardSize(r.limits.RulerTenantShardSize(userID), r.ring.InstancesCount())
13311330

13321331
// We want to guarantee that shard size will be at replication factor
13331332
return max(newShardSize, r.cfg.Ring.ReplicationFactor)

0 commit comments

Comments
 (0)