Skip to content

Commit

Permalink
fix: use common spec limits for wasm rules
Browse files Browse the repository at this point in the history
  • Loading branch information
KevFan committed Apr 10, 2024
1 parent 9b559f4 commit 9ea64ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/rlptools/wasm_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func WasmRules(rlp *kuadrantv1beta2.RateLimitPolicy, route *gatewayapiv1.HTTPRou
}

// Sort RLP limits for consistent comparison with existing wasmplugin objects
limitNames := make([]string, 0, len(rlp.Spec.Limits))
limits := rlp.Spec.CommonSpec().Limits
limitNames := make([]string, 0, len(limits))
for name := range limits {
limitNames = append(limitNames, name)
}
Expand Down

0 comments on commit 9ea64ce

Please sign in to comment.