mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Unify builder argument order (#1276)
This commit is contained in:
committed by
GitHub
parent
00a49f5ee7
commit
b82eac4b00
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user