mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: relax some bounds (#7789)
This commit is contained in:
@ -254,14 +254,14 @@ where
|
|||||||
/// - [`HistoryIndexingStages`]
|
/// - [`HistoryIndexingStages`]
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
pub struct OfflineStages<EF: ExecutorFactory> {
|
pub struct OfflineStages<EF> {
|
||||||
/// Executor factory needs for execution stage
|
/// Executor factory needs for execution stage
|
||||||
pub executor_factory: EF,
|
pub executor_factory: EF,
|
||||||
/// ETL configuration
|
/// ETL configuration
|
||||||
etl_config: EtlConfig,
|
etl_config: EtlConfig,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<EF: ExecutorFactory> OfflineStages<EF> {
|
impl<EF> OfflineStages<EF> {
|
||||||
/// Create a new set of offline stages with default values.
|
/// Create a new set of offline stages with default values.
|
||||||
pub fn new(executor_factory: EF, etl_config: EtlConfig) -> Self {
|
pub fn new(executor_factory: EF, etl_config: EtlConfig) -> Self {
|
||||||
Self { executor_factory, etl_config }
|
Self { executor_factory, etl_config }
|
||||||
@ -280,12 +280,12 @@ impl<EF: ExecutorFactory, DB: Database> StageSet<DB> for OfflineStages<EF> {
|
|||||||
/// A set containing all stages that are required to execute pre-existing block data.
|
/// A set containing all stages that are required to execute pre-existing block data.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
pub struct ExecutionStages<EF: ExecutorFactory> {
|
pub struct ExecutionStages<EF> {
|
||||||
/// Executor factory that will create executors.
|
/// Executor factory that will create executors.
|
||||||
executor_factory: EF,
|
executor_factory: EF,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<EF: ExecutorFactory + 'static> ExecutionStages<EF> {
|
impl<EF> ExecutionStages<EF> {
|
||||||
/// Create a new set of execution stages with default values.
|
/// Create a new set of execution stages with default values.
|
||||||
pub fn new(executor_factory: EF) -> Self {
|
pub fn new(executor_factory: EF) -> Self {
|
||||||
Self { executor_factory }
|
Self { executor_factory }
|
||||||
|
|||||||
Reference in New Issue
Block a user