mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
chore: remove redundant NodeTypes bounds (#16160)
This commit is contained in:
@@ -240,7 +240,7 @@ where
|
||||
/// Configures the types of the node.
|
||||
pub fn with_types<T>(self) -> NodeBuilderWithTypes<RethFullAdapter<DB, T>>
|
||||
where
|
||||
T: NodeTypes<ChainSpec = ChainSpec> + NodeTypesForProvider,
|
||||
T: NodeTypesForProvider<ChainSpec = ChainSpec>,
|
||||
{
|
||||
self.with_types_and_provider()
|
||||
}
|
||||
@@ -250,7 +250,7 @@ where
|
||||
self,
|
||||
) -> NodeBuilderWithTypes<FullNodeTypesAdapter<T, DB, P>>
|
||||
where
|
||||
T: NodeTypes<ChainSpec = ChainSpec> + NodeTypesForProvider,
|
||||
T: NodeTypesForProvider<ChainSpec = ChainSpec>,
|
||||
P: FullProvider<NodeTypesWithDBAdapter<T, DB>>,
|
||||
{
|
||||
NodeBuilderWithTypes::new(self.config, self.database)
|
||||
@@ -301,7 +301,7 @@ where
|
||||
/// Configures the types of the node.
|
||||
pub fn with_types<T>(self) -> WithLaunchContext<NodeBuilderWithTypes<RethFullAdapter<DB, T>>>
|
||||
where
|
||||
T: NodeTypes<ChainSpec = ChainSpec> + NodeTypesForProvider,
|
||||
T: NodeTypesForProvider<ChainSpec = ChainSpec>,
|
||||
{
|
||||
WithLaunchContext { builder: self.builder.with_types(), task_executor: self.task_executor }
|
||||
}
|
||||
@@ -311,7 +311,7 @@ where
|
||||
self,
|
||||
) -> WithLaunchContext<NodeBuilderWithTypes<FullNodeTypesAdapter<T, DB, P>>>
|
||||
where
|
||||
T: NodeTypes<ChainSpec = ChainSpec> + NodeTypesForProvider,
|
||||
T: NodeTypesForProvider<ChainSpec = ChainSpec>,
|
||||
P: FullProvider<NodeTypesWithDBAdapter<T, DB>>,
|
||||
{
|
||||
WithLaunchContext {
|
||||
|
||||
Reference in New Issue
Block a user