fix: rename variables and fix typos in tables.rs, execution.rs, and mdbx code (#14148)

This commit is contained in:
Marson Kotovi4
2025-02-03 12:09:46 +02:00
committed by GitHub
parent b06682e9af
commit 0ad7de48b6
2 changed files with 5 additions and 5 deletions

View File

@ -124,19 +124,19 @@ where
// We want to control our repeated keys
let mut seen_keys = HashSet::new();
let strat_values = proptest::collection::vec(arb::<T::Value>(), 100..300).no_shrink().boxed();
let start_values = proptest::collection::vec(arb::<T::Value>(), 100..300).no_shrink().boxed();
let strat_keys = arb::<T::Key>().no_shrink().boxed();
let start_keys = arb::<T::Key>().no_shrink().boxed();
while rows.len() < per_table {
let key: T::Key = strat_keys.new_tree(runner).map_err(|e| eyre::eyre!("{e}"))?.current();
let key: T::Key = start_keys.new_tree(runner).map_err(|e| eyre::eyre!("{e}"))?.current();
if !seen_keys.insert(key.clone()) {
continue
}
let mut values: Vec<T::Value> =
strat_values.new_tree(runner).map_err(|e| eyre::eyre!("{e}"))?.current();
start_values.new_tree(runner).map_err(|e| eyre::eyre!("{e}"))?.current();
values.sort();

View File

@ -181,7 +181,7 @@ where
where
Provider: StaticFileProviderFactory + DBProvider + BlockReader + HeaderProvider,
{
// If thre's any receipts pruning configured, receipts are written directly to database and
// If there's any receipts pruning configured, receipts are written directly to database and
// inconsistencies are expected.
if provider.prune_modes_ref().has_receipts_pruning() {
return Ok(())