Split NetworkEventListenerProvider into two #12861
Labels
A-networking
Related to networking in general
C-enhancement
New feature or request
D-good-first-issue
Nice and easy! A great choice to get started
Describe the feature
currently
reth/crates/net/network-api/src/events.rs
Line 21 in 82eb383
returns a non generic:
reth/crates/net/network-api/src/events.rs
Lines 35 to 64 in 82eb383
but we need this to be generic, but only in a few places.
we can make this more convenient if we convert these fields (minus
messages
) into a standalone typeSessionInfo
:reth/crates/net/network-api/src/events.rs
Lines 44 to 59 in 82eb383
and then introduce a new trait
NetworkPeersEvents
that only returns the non generic events whileNetworkEventListenerProvider
becomesNetworkEventListenerProvider: NetworkPeersEvents
TODO
SessionInfo
NetworkPeersEvents
with stream and event typeAdditional context
No response
The text was updated successfully, but these errors were encountered: