-
Notifications
You must be signed in to change notification settings - Fork 285
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
optimize MessageType and TransactionErrorCode #453
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #453 +/- ##
=======================================
Coverage 39.05% 39.05%
=======================================
Files 144 144
Lines 9120 9120
=======================================
Hits 3562 3562
Misses 5264 5264
Partials 294 294 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
*/ | ||
MessageTypeGlobalCommit MessageType = 7 | ||
MessageTypeBranchCommit |
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.
这里是 7?
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.
之前顺序是乱的,我调整了下,方便用iota
*/ | ||
MessageTypeBranchStatusReport MessageType = 13 | ||
MessageTypeGlobalLockQuery MessageType = iota + 3 |
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.
把顺序调整下?
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.
这里iota是递增上面的,上面的一行是iota是17,这个MessageTypeGlobalLockQuery值应该是21,中间没有其他连续的枚举值了,所以加了3
format MessageType and TransactionErrorCode
What this PR does:
Optimize MessageType and TransactionErrorCode
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: