We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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:
为什么我这边,总请求数加起来还不到10000个,就报:请求太多,被限流了呢。 configs.MaxRequestsPerSecond 确实是10000.
Sorry, something went wrong.
No branches or pull requests
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: