-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
限流器设置可能有误 #69
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
go-gin-api/internal/pkg/core/core.go
Line 527 in 4c37a7e
代码中固定了 每秒只产生 1 个令牌, 即当初始的 10000 个消费完成后, 就只能 1 秒 1 个请求了.
可以发起 20000 个请求测试一下.
另外, 建议最好放到配置文件里, 而不是常量配置.
The text was updated successfully, but these errors were encountered: