Skip to content
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

Merged

Conversation

jxs
Copy link
Member

@jxs jxs commented Dec 21, 2023

use only the connectec_peers mapping

@jxs jxs force-pushed the remove-peer-topics-topic-peers branch 6 times, most recently from 9a3dcf8 to 5f43d26 Compare January 8, 2024 23:03
/// 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>,
Copy link
Member

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?

Copy link
Member

@pawanjay176 pawanjay176 Jan 9, 2024

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

@jxs jxs force-pushed the remove-peer-topics-topic-peers branch from 5f43d26 to eaaee16 Compare January 9, 2024 12:10
@jxs jxs force-pushed the remove-peer-topics-topic-peers branch 3 times, most recently from 77c59a2 to ae9f94c Compare January 9, 2024 14:03
@jxs jxs force-pushed the remove-peer-topics-topic-peers branch from ae9f94c to 0d3ceaf Compare January 9, 2024 14:23
@AgeManning AgeManning merged commit c223884 into sigp:lighthouse-gossipsub Jan 9, 2024
65 of 68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants