replace network_handle instance with boxed api trait #9279
Labels
A-observability
Related to tracing, metrics, logs and other observability tools
C-enhancement
New feature or request
D-good-first-issue
Nice and easy! A great choice to get started
Describe the feature
This currently requires an instance of networkhandle:
reth/crates/node/events/src/node.rs
Lines 39 to 40 in 7401f46
which is only used to get the current number of connected peers
reth/crates/node/events/src/node.rs
Line 74 in 7401f46
which is called via the
PeersInfo
trait, we can simply use a box here to get rid of the handle instanceTODO
replace
reth/crates/node/events/src/node.rs
Lines 39 to 40 in 7401f46
with
Option<Box<dyn PeersInfo>>
Additional context
No response
The text was updated successfully, but these errors were encountered: