fix: unittest

This commit is contained in:
debugtalk
2021-12-23 09:38:07 +08:00
parent ddfa9168ad
commit dd1b7b9d4e
2 changed files with 3 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ func (b *Boomer) SetRateLimiter(maxRPS int64, requestIncreaseRate string) {
maxRPS = math.MaxInt64
}
log.Warn().Int64("maxRPS", maxRPS).Str("increaseRate", requestIncreaseRate).Msg("set ramp up rate limiter")
rateLimiter, err = NewRampUpRateLimiter(math.MaxInt64, requestIncreaseRate, time.Second)
rateLimiter, err = NewRampUpRateLimiter(maxRPS, requestIncreaseRate, time.Second)
} else {
if maxRPS > 0 {
log.Warn().Int64("maxRPS", maxRPS).Msg("set stable rate limiter")