-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat(gossipsub): Remove peer_topics and topic_peers #564
feat(gossipsub): Remove peer_topics and topic_peers #564
Conversation
9a3dcf8
to
5f43d26
Compare
protocols/gossipsub/src/metrics.rs
Outdated
/// The size of the priority queue. | ||
priority_queue_size: Histogram, | ||
/// The size of the priority queue for each PeerId. | ||
priority_queue_size: Family<PeerIdLabel, Histogram, HistBuilder>, |
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.
If we do this, doesn't this grow unbounded. Like PeerId's come and go. And we have no way to remove them from the mappings?
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.
This metric was for debugging purposes more than anything. Can be removed now i think
5f43d26
to
eaaee16
Compare
77c59a2
to
ae9f94c
Compare
ae9f94c
to
0d3ceaf
Compare
use only the
connectec_peers
mapping