From 3c5ae7625329c6bb87f03d77a8527806fd368ff9 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Mon, 9 Dec 2024 09:35:18 -0500 Subject: [PATCH] Linting --- pkg/ruler/rule_concurrency.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ruler/rule_concurrency.go b/pkg/ruler/rule_concurrency.go index e9a78b4c13..5d97f628ed 100644 --- a/pkg/ruler/rule_concurrency.go +++ b/pkg/ruler/rule_concurrency.go @@ -197,7 +197,7 @@ func (c *TenantConcurrencyController) isGroupAtRisk(group *rules.Group) bool { } // Sum up the total duration of all rules in the group to determine if the group is at risk if rules were all run sequentially. - var ruleTotalDuration float64 = 0 + var ruleTotalDuration float64 for _, rule := range group.Rules() { ruleTotalDuration += rule.GetEvaluationDuration().Seconds() }