Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
acerone85 committed Oct 3, 2024
1 parent eb20535 commit 308c34a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/fuel-core/src/state/historical_rocksdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ where
fn multiversion_take<Description, T>(
storage_transaction: &mut StorageTransaction<T>,
height: u64,
modifications_history_modifications_history_migration_in_progress: bool,
modifications_history_migration_in_progress: bool,
) -> StorageResult<Option<Changes>>
where
Description: DatabaseDescription,
Expand All @@ -511,7 +511,7 @@ where
.storage_as_mut::<ModificationsHistoryV2<Description>>()
.take(&height)?;

if modifications_history_modifications_history_migration_in_progress {
if modifications_history_migration_in_progress {
let v1_last_changes = storage_transaction
.storage_as_mut::<ModificationsHistoryV1<Description>>()
.take(&height)?;
Expand All @@ -525,7 +525,7 @@ fn multiversion_replace<Description, T>(
storage_transaction: &mut StorageTransaction<T>,
height: u64,
changes: &Changes,
modifications_history_modifications_history_migration_in_progress: bool,
modifications_history_migration_in_progress: bool,
) -> StorageResult<Option<Changes>>
where
Description: DatabaseDescription,
Expand All @@ -535,7 +535,7 @@ where
.storage_as_mut::<ModificationsHistoryV2<Description>>()
.replace(&height, changes)?;

if modifications_history_modifications_history_migration_in_progress {
if modifications_history_migration_in_progress {
let v1_last_changes = storage_transaction
.storage_as_mut::<ModificationsHistoryV1<Description>>()
.take(&height)?;
Expand All @@ -549,7 +549,7 @@ fn cleanup_old_changes<Description, T>(
height: &u64,
storage_transaction: &mut StorageTransaction<T>,
state_rewind_policy: &StateRewindPolicy,
modifications_history_modifications_history_migration_in_progress: bool,
modifications_history_migration_in_progress: bool,
) -> StorageResult<()>
where
Description: DatabaseDescription,
Expand All @@ -568,7 +568,7 @@ where
let old_changes = multiversion_take(
storage_transaction,
old_height,
modifications_history_modifications_history_migration_in_progress,
modifications_history_migration_in_progress,
)?;

if let Some(old_changes) = old_changes {
Expand Down

0 comments on commit 308c34a

Please sign in to comment.