-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
chore(sdk): add NetworkPrimitives for NetworkManager #12530
chore(sdk): add NetworkPrimitives for NetworkManager #12530
Conversation
you should also add generic to its implementations, eg here: reth/crates/net/network/src/manager.rs Line 119 in 68a6ada
this would highlight some more places where generic is required |
@klkvr could you help me a bit here? I've updated all the places but it seems I can't keep up with the chain of all generics. |
examples/bsc-p2p/Cargo.toml
Outdated
@@ -15,6 +15,7 @@ reth-network-api.workspace = true | |||
reth-network-peers.workspace = true | |||
reth-primitives.workspace = true | |||
reth-tracing.workspace = true | |||
reth-eth-wire-types.workspace = true |
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.
we should avoid this additional import and instead re-export EthNetworkPrimitives from the network crate
crates/net/network-api/src/events.rs
Outdated
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 I'd like to change separately
@lakshya-sky the issue is that here stream expects a stream of I think for now it should be OK to remove NetworkPrimitives generic from NodeEvent and instead just convert or as Matt mentioned we can just avoid touching events for now |
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.
lgtm
Co-authored-by: dkathiriya <[email protected]>
closes #12517