-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(gossipsub): feature gate metrics related code #6020
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
Conversation
44817d7 to
ad513bc
Compare
replace Option<PeerScore> with PeerScoreState to allow to ease that move
by returning the penalties in the score report insteadw
Co-authored-by: Darius Clark <[email protected]>
elenaf9
left a comment
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.
I like the refactor, I think it improves readability.
I don't really have an opinion on whether we should/ need to feature-gate the metrics code, but this PR solves it quite nicely without impacting readability too much.
jxs
left a comment
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.
Thanks Elena! Addressed your comments, if it's conforming feel free to approve and send-it
elenaf9
left a comment
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!
Description
while refactoring scoring for libp2p/specs#664 I recalled #5711 and so this PR changed scope from a refactor to a feature.
Per commit review is suggested for an easier experience.
CC @drHuangMHT