Skip to content

Commit

Permalink
fix gen-check and lint
Browse files Browse the repository at this point in the history
Signed-off-by: shawnh2 <[email protected]>
  • Loading branch information
shawnh2 committed Oct 1, 2024
1 parent 79aecac commit a5fb19f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/xds/translator/ratelimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ func buildRateLimitServiceDescriptors(global *ir.GlobalRateLimit) []*rlsconfv3.R
// Descriptors for matches are built corresponding to ratelimit actions.
for rIdx, rule := range global.Rules {
var head, cur *rlsconfv3.RateLimitDescriptor
var rateLimitPolicy = &rlsconfv3.RateLimitPolicy{
rateLimitPolicy := &rlsconfv3.RateLimitPolicy{
RequestsPerUnit: uint32(rule.Limit.Requests),
Unit: rlsconfv3.RateLimitUnit(rlsconfv3.RateLimitUnit_value[strings.ToUpper(string(rule.Limit.Unit))]),
}
Expand Down
2 changes: 1 addition & 1 deletion site/content/en/docs/tasks/traffic/global-rate-limit.md
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ spec:
- clientSelectors:
- sourceCIDR:
value: 0.0.0.0/0
type: distinct
type: Distinct
limit:
requests: 3
unit: Hour
Expand Down

0 comments on commit a5fb19f

Please sign in to comment.