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
terror: remove dead code which may cause data race #1096
Conversation
/run-all-tests |
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, though IMO you could cut the code2ErrClassMap
type and use that sync.Map
with Load
and Store
directly, they are private implementation details anyway 🤷.
For now, golang not support generic, so I prefer to use this style to write less typecast code.😁 |
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
/merge |
@kennytm Oops! This PR requires at least 2 LGTMs to merge. The current number of |
/merge |
/run-all-tests |
@blacktear23 merge failed. |
* terror: remove dead code * terror: fix potential data race
What problem does this PR solve?
close issues:
What is changed and how it works?
remove useless code and this can cause data race.
Check List
Tests
Code changes
Side effects
Related changes