Skip to content

Commit

Permalink
Rename groupingStr to groupingSlug
Browse files Browse the repository at this point in the history
Signed-off-by: heartwilltell <[email protected]>
  • Loading branch information
heartwilltell committed Jan 16, 2025
1 parent c6f4d3f commit 6f16226
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/test_routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (c *routingShow) routingTestAction(ctx context.Context, _ *kingpin.ParseCon
receiversSlug := strings.Join(receivers, ",")
finalRoutes := mainRoute.Match(convertClientToCommonLabelSet(ls))

var groupingStr string
var groupingSlug string

if len(finalRoutes) > 0 {
lastRoute := finalRoutes[len(finalRoutes)-1]
Expand All @@ -118,11 +118,11 @@ func (c *routingShow) routingTestAction(ctx context.Context, _ *kingpin.ParseCon
groupBySlice = append(groupBySlice, string(k))
}

groupingStr = fmt.Sprintf(", grouping: [%s]", strings.Join(groupBySlice, ","))
groupingSlug = fmt.Sprintf(", grouping: [%s]", strings.Join(groupBySlice, ","))
}
}

fmt.Printf("%s%s\n", receiversSlug, groupingStr)
fmt.Printf("%s%s\n", receiversSlug, groupingSlug)

if c.expectedReceivers != "" && c.expectedReceivers != receiversSlug {
fmt.Printf("WARNING: Expected receivers did not match resolved receivers.\n")
Expand Down

0 comments on commit 6f16226

Please sign in to comment.