mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: apply some style suggestions (#7307)
This commit is contained in:
@ -91,15 +91,15 @@ impl Command {
|
||||
},
|
||||
|provider| {
|
||||
Ok(provider
|
||||
.header_by_number(num as u64)?
|
||||
.ok_or(ProviderError::HeaderNotFound((num as u64).into()))?)
|
||||
.header_by_number(num)?
|
||||
.ok_or(ProviderError::HeaderNotFound((num).into()))?)
|
||||
},
|
||||
)?;
|
||||
}
|
||||
|
||||
// BENCHMARK QUERYING A RANDOM HEADER BY HASH
|
||||
{
|
||||
let num = row_indexes[rng.gen_range(0..row_indexes.len())] as u64;
|
||||
let num = row_indexes[rng.gen_range(0..row_indexes.len())];
|
||||
let header_hash = provider_factory
|
||||
.header_by_number(num)?
|
||||
.ok_or(ProviderError::HeaderNotFound(num.into()))?
|
||||
|
||||
@ -141,7 +141,7 @@ impl ImportCommand {
|
||||
tokio::select! {
|
||||
res = pipeline.run() => res?,
|
||||
_ = tokio::signal::ctrl_c() => {},
|
||||
};
|
||||
}
|
||||
|
||||
info!(target: "reth::cli", "Finishing up");
|
||||
Ok(())
|
||||
|
||||
@ -261,7 +261,7 @@ impl Command {
|
||||
_ => return Ok(()),
|
||||
};
|
||||
if let Some(unwind_stage) = &unwind_stage {
|
||||
assert!(exec_stage.type_id() == unwind_stage.type_id());
|
||||
assert_eq!(exec_stage.type_id(), unwind_stage.type_id());
|
||||
}
|
||||
|
||||
let checkpoint = provider_rw.get_stage_checkpoint(exec_stage.id())?.unwrap_or_default();
|
||||
|
||||
Reference in New Issue
Block a user