Skip to content
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

修复Redis限流器同一时间多个请求只计算一次的问题 #28

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

bootun
Copy link
Contributor

@bootun bootun commented Nov 16, 2024

为每个请求新增了uuid, 这样同一时间进来的多个请求也会被独立计算。
7a9b94cad785d0a454f54f39c8deeba

Copy link
Contributor

@flycash flycash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value 应该是没用的,犯不着拼接,直接改成用 uid 来填充就可以

@bootun
Copy link
Contributor Author

bootun commented Nov 17, 2024

已修改

@bootun
Copy link
Contributor Author

bootun commented Nov 18, 2024

单测失败并不属于本次代码改动范围内

@flycash flycash merged commit a112529 into ecodeclub:main Nov 18, 2024
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

基于Redis实现的滑动窗口限流存在BUG
2 participants