-
Notifications
You must be signed in to change notification settings - Fork 935
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
bug fix for UnregisterEvent #129
Conversation
Codecov Report
@@ Coverage Diff @@
## master #129 +/- ##
==========================================
- Coverage 68.59% 68.56% -0.04%
==========================================
Files 69 69
Lines 4347 4346 -1
==========================================
- Hits 2982 2980 -2
Misses 1064 1064
- Partials 301 302 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* add general .run file * add .run xml * del repeat xml in general folder * mod format xml
What this PR does:
将UnregisterEvent函数中的循环去掉,该事件意在删除满足if条件e == event的注册地址,而不是删除整个zkPath对应的注册列表。
原代码中:如果函数中a的长度是2,经过删除长度为1,能继续进入循环,但因为无满足的e == event,无法继续删除,造成死循环。
改动:函数并没有重复检查是否有zkPath的注册信息的必要,删除for循环。
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: