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: refactoring get_status() to return NetworkStatus #997

Merged
merged 2 commits into from
Jan 24, 2023

Conversation

leruaa
Copy link
Contributor

@leruaa leruaa commented Jan 23, 2023

Closes #996

let status = rx.await?;

Ok(NetworkStatus {
client_version: "Reth".to_string(),
Copy link
Collaborator

@mattsse mattsse Jan 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I should have made this clearer in the issue, we don't want the Status as the response from the NetworkManager we want NetworkStatus, so the NetworkManager should populate it directly.

for example, NetworkManager already has access to the client_version via SessionManager.hello_message

@rkrasiuk rkrasiuk added C-enhancement New feature or request A-networking Related to networking in general C-debt Refactor of code section that is hard to understand or maintain and removed C-enhancement New feature or request labels Jan 24, 2023
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, lgtm!

@mattsse mattsse merged commit 1c93b2c into paradigmxyz:main Jan 24, 2023
literallymarvellous pushed a commit to literallymarvellous/reth that referenced this pull request Feb 5, 2023
literallymarvellous pushed a commit to literallymarvellous/reth that referenced this pull request Feb 5, 2023
literallymarvellous pushed a commit to literallymarvellous/reth that referenced this pull request Feb 6, 2023
@leruaa leruaa deleted the get_status_refactoring branch July 12, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-networking Related to networking in general C-debt Refactor of code section that is hard to understand or maintain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Network:: get_status should return NetworkStatus
3 participants