fix(stages, etl): clear ETL collectors in Headers stage when done (#6964)

This commit is contained in:
Alexey Shekhirin
2024-03-05 14:49:06 +00:00
committed by GitHub
parent ec401aa781
commit 024c217564
9 changed files with 80 additions and 60 deletions

View File

@ -399,17 +399,14 @@ where
.build(client.clone(), consensus.clone(), provider_factory.clone())
.into_task();
Pipeline::builder().add_stages(
DefaultStages::new(
provider_factory.clone(),
HeaderSyncMode::Tip(tip_rx.clone()),
Arc::clone(&consensus),
header_downloader,
body_downloader,
executor_factory.clone(),
)
.expect("should build"),
)
Pipeline::builder().add_stages(DefaultStages::new(
provider_factory.clone(),
HeaderSyncMode::Tip(tip_rx.clone()),
Arc::clone(&consensus),
header_downloader,
body_downloader,
executor_factory.clone(),
))
}
};