Skip to content

Commit

Permalink
fix: change some code styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjunLi committed Jul 16, 2024
1 parent c018f66 commit f3da606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/rawdb/prunedfreezer.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ func (f *prunedfreezer) repair(datadir string) error {

// FrozenOfAncientFreezer is the progress of the last prune-freezer freeze.
frozenInDB := ReadFrozenOfAncientFreezer(f.db)
offset = max(offset, frozenInDB)
maxOffset := max(offset, frozenInDB)

atomic.StoreUint64(&f.frozen, offset)
atomic.StoreUint64(&f.frozen, maxOffset)
if err := f.Sync(); err != nil {
return nil
}
Expand Down

0 comments on commit f3da606

Please sign in to comment.