mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
chore(rpc): use FullNodeComponents::Network in EthApiBuilderCtx (#10996)
This commit is contained in:
@@ -251,7 +251,7 @@ where
|
||||
type Ctx<'a> = &'a EthApiBuilderCtx<N>;
|
||||
|
||||
fn builder() -> Box<dyn for<'a> Fn(Self::Ctx<'a>) -> Self + Send> {
|
||||
Box::new(|ctx| Self::with_spawner(ctx))
|
||||
Box::new(Self::with_spawner)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -159,16 +159,15 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
impl<N, Network> BuilderProvider<N> for EthApi<N::Provider, N::Pool, Network, N::Evm>
|
||||
impl<N> BuilderProvider<N> for EthApi<N::Provider, N::Pool, N::Network, N::Evm>
|
||||
where
|
||||
N: FullNodeComponents,
|
||||
Network: Send + Sync + Clone + 'static,
|
||||
{
|
||||
type Ctx<'a> =
|
||||
&'a EthApiBuilderCtx<N::Provider, N::Pool, N::Evm, Network, TaskExecutor, N::Provider>;
|
||||
&'a EthApiBuilderCtx<N::Provider, N::Pool, N::Evm, N::Network, TaskExecutor, N::Provider>;
|
||||
|
||||
fn builder() -> Box<dyn for<'a> Fn(Self::Ctx<'a>) -> Self + Send> {
|
||||
Box::new(|ctx| Self::with_spawner(ctx))
|
||||
Box::new(Self::with_spawner)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user