-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Refactoring lib.TagSet #1148
Refactoring lib.TagSet #1148
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1148 +/- ##
==========================================
- Coverage 73.67% 73.63% -0.04%
==========================================
Files 145 147 +2
Lines 10604 10639 +35
==========================================
+ Hits 7812 7834 +22
- Misses 2333 2345 +12
- Partials 459 460 +1
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
969ea64
to
ea613a7
Compare
ea613a7
to
0330f8d
Compare
514bbc9
to
7d735e2
Compare
7d735e2
to
6ec23ab
Compare
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, thanks for patiently working through all of the reviews!
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 but if you can just change to use map[string]struct{}
instead of map[string]bool
fix golangci-lint
The map variant is meant to be used when there's a mix between system and non-system tags, it doesn't make sense to contain System in the name.
This PR introduce new
SystemTagSet
,SystemTagMap
understats
package.SystemTagMap
is the same as oldlib.TagSet
.SystemTagSet
is a bit mask.Putting them under
stats
package is more appropriate and have better semantic, also it help reducing complexity of currentlib
package and prevent import cycle.Old
lib.TagSet
is removed.Close #755