Skip to content

Commit

Permalink
doc: update flat storage move_head_enabled comment (near#12536)
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksandr Logunov <alex.logunov@near.org>
  • Loading branch information
pugachAG and Longarithm authored Nov 29, 2024
1 parent 2986951 commit 0194311
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/store/src/flat/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ pub(crate) struct FlatStorageInner {
flat_head: BlockInfo,
/// Cached deltas for all blocks supported by this flat storage.
deltas: HashMap<CryptoHash, CachedFlatStateDelta>,
/// This flag enables skipping flat head moves, needed temporarily for FlatState
/// values inlining migration.
/// The flag has a numerical value and not a bool, to let us detect attempts
/// to disable move head multiple times.
/// Defines whether flat head can be moved forward or not.
move_head_enabled: bool,
metrics: FlatStorageMetrics,
}
Expand Down

0 comments on commit 0194311

Please sign in to comment.