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.
pull/16871/merge
aarogoss 9 months ago committed by GitHub
parent 46b2271aac
commit 32f2af2510
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      pkg/limits/frontend/ring.go
  2. 2
      pkg/querier/queryrange/limits.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 {

@ -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,

Loading…
Cancel
Save