From 32f2af25103bdddad22fd2cc6c925ea1cacbed4e Mon Sep 17 00:00:00 2001 From: aarogoss <32306622+aarogoss@users.noreply.github.com> Date: Fri, 25 Apr 2025 08:56:21 -0600 Subject: [PATCH] chore: run `make lint` and fix one linter conversion complaint (#17452) Updates the queryrange/limits.go:WeightedParallelism function return. The linter is complaining about an int being cast to an int. Also ran make lint which introduces a negligible spelling change to limits/frontend/ring.go. --- pkg/limits/frontend/ring.go | 2 +- pkg/querier/queryrange/limits.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/limits/frontend/ring.go b/pkg/limits/frontend/ring.go index eb6dab0534..3bf22c1536 100644 --- a/pkg/limits/frontend/ring.go +++ b/pkg/limits/frontend/ring.go @@ -128,7 +128,7 @@ type zonePartitionConsumersResult struct { // in the replication set. If a zone has no active partition consumers, the // zone will still be returned but its partition consumers will be nil. // If ZoneAwarenessEnabled is false, it returns all partition consumers under -// a psuedo-zone (""). +// a pseudo-zone (""). func (g *RingStreamUsageGatherer) getZoneAwarePartitionConsumers(ctx context.Context, instances []ring.InstanceDesc) (map[string]map[int32]string, error) { zoneDescs := make(map[string][]ring.InstanceDesc) for _, instance := range instances { diff --git a/pkg/querier/queryrange/limits.go b/pkg/querier/queryrange/limits.go index 64e89dac74..5b0cd9610b 100644 --- a/pkg/querier/queryrange/limits.go +++ b/pkg/querier/queryrange/limits.go @@ -696,7 +696,7 @@ func WeightedParallelism( regPart := int(otherDur) * regMaxQueryParallelism / totalDur if combined := regPart + tsdbPart; combined > 0 { - return int(combined) + return combined } // As long as the actual config is not zero,