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 6436146 commit 4436e15
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/rawdb/prunedfreezer.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,9 @@ func (f *prunedfreezer) repair(datadir string) error {
// If minItems is non-zero, it indicates that the chain freezer was previously enabled, and we should use minItems as the current frozen value.
// If minItems is zero, it indicates that the pruneAncient was previously enabled, and we should continue using frozen
// (retrieved from CurrentAncientFreezer) as the current frozen value.
var offset uint64
if minItems != 0 {
offset = minItems
} else {
offset := minItems
if offset == 0 {
// no item in ancientDB, init `offset` to the `f.frozen`
offset = atomic.LoadUint64(&f.frozen)
}
log.Info("Read ancientdb item counts", "items", minItems, "offset", offset)
Expand Down

0 comments on commit 4436e15

Please sign in to comment.