Skip to content

Commit

Permalink
Fix slice init length (cadence-workflow#6293)
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <[email protected]>
  • Loading branch information
cuishuang authored Oct 3, 2024
1 parent add84ef commit 7be38c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/quotas/limiter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func newFixedRpsMultiStageRateLimiter(globalRps float64, domainRps int) Policy {
)
}
func getDomains(n int) []string {
domains := make([]string, n)
domains := make([]string, 0, n)
for i := 0; i < n; i++ {
domains = append(domains, fmt.Sprintf("domains%v", i))
}
Expand Down

0 comments on commit 7be38c4

Please sign in to comment.