chore(rpc): use FullNodeComponents::Network in EthApiBuilderCtx (#10996)

This commit is contained in:
Emilia Hane
2024-09-20 03:56:05 +02:00
committed by GitHub
parent 84db469f71
commit 884c74d5ed
2 changed files with 4 additions and 5 deletions

View File

@@ -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)
}
}

View File

@@ -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)
}
}