-
Notifications
You must be signed in to change notification settings - Fork 339
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
fix: removed kademlia and libp2p discrepancy kludge #2429
Conversation
should we PR this to |
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.
Reviewed 1 of 2 files at r1.
Reviewable status: 1 of 2 files reviewed, 2 unresolved discussions (waiting on @istae)
pkg/topology/kademlia/metrics.go, line 137 at r1 (raw file):
Namespace: m.Namespace, Subsystem: subsystem, Name: "p2p_kademlia_discrepancy",
I'd remove the kademlia
from the Name
since it is already explicitly stated in the subsystem variable.
pkg/topology/kademlia/metrics.go, line 138 at r1 (raw file):
Subsystem: subsystem, Name: "p2p_kademlia_discrepancy", Help: "Discrepancy counter between lists of peers in kademlia and libp2p",
I'd also remove the counter
from the description, since it is implicit. Maybe The discrepancy between lists of peers in kademlia and libp2p
.
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.
Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @istae)
Kudos, SonarCloud Quality Gate passed! |
After running a bee node in main-net for two days with the discrepancy metric, it was discovered that the issue has been fixed and the kludge can be removed.
PR includes deepsource fixes:
kad.connected
renamed tokad.onConnected
pslice.exists
renamed topslice.index
Announce
,Connected
,AnnounceTo
split into two new functions to avoid control coupling or simplifiedThis change is