Unify builder argument order (#1276)

This commit is contained in:
Ikechukwu Ahiara Marvellous
2023-02-10 22:58:05 +01:00
committed by GitHub
parent 00a49f5ee7
commit b82eac4b00
7 changed files with 16 additions and 16 deletions

View File

@ -126,7 +126,7 @@ impl ImportCommand {
C: Consensus + 'static,
{
let header_downloader = ReverseHeadersDownloaderBuilder::from(config.stages.headers)
.build(consensus.clone(), file_client.clone())
.build(file_client.clone(), consensus.clone())
.as_task();
let body_downloader = BodiesDownloaderBuilder::from(config.stages.bodies)

View File

@ -173,7 +173,7 @@ impl Command {
let fetch_client = Arc::new(network.fetch_client().await?);
let header_downloader = ReverseHeadersDownloaderBuilder::from(config.stages.headers)
.build(consensus.clone(), fetch_client.clone())
.build(fetch_client.clone(), consensus.clone())
.as_task();
let body_downloader = BodiesDownloaderBuilder::from(config.stages.bodies)