mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
replaced generic to box dyn (#9443)
This commit is contained in:
@ -478,7 +478,7 @@ impl<Node: FullNodeTypes> BuilderContext<Node> {
|
||||
}
|
||||
|
||||
/// Creates the [`NetworkBuilder`] for the node.
|
||||
pub async fn network_builder(&self) -> eyre::Result<NetworkBuilder<Node::Provider, (), ()>> {
|
||||
pub async fn network_builder(&self) -> eyre::Result<NetworkBuilder<(), ()>> {
|
||||
let network_config = self.network_config()?;
|
||||
let builder = NetworkManager::builder(network_config).await?;
|
||||
Ok(builder)
|
||||
@ -488,11 +488,7 @@ impl<Node: FullNodeTypes> BuilderContext<Node> {
|
||||
///
|
||||
/// Spawns the configured network and associated tasks and returns the [`NetworkHandle`]
|
||||
/// connected to that network.
|
||||
pub fn start_network<Pool>(
|
||||
&self,
|
||||
builder: NetworkBuilder<Node::Provider, (), ()>,
|
||||
pool: Pool,
|
||||
) -> NetworkHandle
|
||||
pub fn start_network<Pool>(&self, builder: NetworkBuilder<(), ()>, pool: Pool) -> NetworkHandle
|
||||
where
|
||||
Pool: TransactionPool + Unpin + 'static,
|
||||
{
|
||||
|
||||
@ -49,7 +49,7 @@ pub trait RethNetworkConfig {
|
||||
// TODO add more network config methods here
|
||||
}
|
||||
|
||||
impl<C> RethNetworkConfig for reth_network::NetworkManager<C> {
|
||||
impl RethNetworkConfig for reth_network::NetworkManager {
|
||||
fn add_rlpx_sub_protocol(&mut self, protocol: impl IntoRlpxSubProtocol) {
|
||||
Self::add_rlpx_sub_protocol(self, protocol);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user