fix: 优化延迟计数的并发预占与额度恢复 - #5
Open
Misty02600 wants to merge 1 commit into
Open
Conversation
Misty02600
force-pushed
the
fix-delayed-counting
branch
from
August 11, 2026 03:23
d6c8d0c to
d7c374e
Compare
Owner
|
这个似乎只在 Increaser 操作很重比如接入数据库的时候才真的需要这么复杂的优化,而且其实 nb 大部分使用场景(IM平台) 在输入端就会做 TPS 限制。考虑到 Increaser 现在也只是简易的 dict,目前这个就先放一放,等别的做完再看看 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
通过预占计数,阻止网络请求等耗时较长的指令,被用户恶意高并发触发突破限额