chore: remove redundant NodeTypes bounds (#16160)

This commit is contained in:
Federico Gimenez
2025-05-12 12:11:35 +02:00
committed by GitHub
parent 96bc7b345d
commit a411d9334e
3 changed files with 8 additions and 10 deletions

View File

@@ -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 {