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

Split PeerManager into Reusable Components #6860

Open
diegomrsantos opened this issue Jan 24, 2025 · 0 comments
Open

Split PeerManager into Reusable Components #6860

diegomrsantos opened this issue Jan 24, 2025 · 0 comments

Comments

@diegomrsantos
Copy link

diegomrsantos commented Jan 24, 2025

Description

The PeerManager currently acts as a monolithic component in the codebase, combining multiple concerns such as peer connectivity, scoring, heartbeat logic, and subnet management. This structure has led to tightly coupled logic, making it harder to reuse specific functionality in other projects, such as the Anchor Project.

The primary goal of this refactor is to split the PeerManager into smaller, reusable components that can be composed to achieve the same functionality. By modularizing the code, the functionality of the PeerManager will not only remain intact but also become easier to maintain, test, and extend. Additionally, this will allow the Anchor Project and other projects to leverage specific peer management features without needing to import or modify the entire PeerManager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants