Skip to content

Commit 99eb945

Browse files
committed
fix lint
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
1 parent c065ccf commit 99eb945

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

pkg/ruler/ruler.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -776,13 +776,6 @@ func (r *Ruler) isUserOwned(userID string) bool {
776776
return rulers.Includes(r.lifecycler.GetInstanceAddr())
777777
}
778778

779-
func shardByUser(userID string) uint32 {
780-
ringHasher := fnv.New32a()
781-
// Hasher never returns err.
782-
_, _ = ringHasher.Write([]byte(userID))
783-
return ringHasher.Sum32()
784-
}
785-
786779
func (r *Ruler) syncRules(ctx context.Context, reason string) error {
787780
level.Info(r.logger).Log("msg", "syncing rules", "reason", reason)
788781
r.rulerSync.WithLabelValues(reason).Inc()

pkg/ruler/rulestore/local/local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import (
66
"os"
77
"path/filepath"
88

9-
"github.com/cortexproject/cortex/pkg/util/users"
109
"github.com/pkg/errors"
1110
promRules "github.com/prometheus/prometheus/rules"
1211

1312
"github.com/cortexproject/cortex/pkg/ruler/rulespb"
13+
"github.com/cortexproject/cortex/pkg/util/users"
1414
)
1515

1616
const (

0 commit comments

Comments
 (0)