Skip to content

Commit

Permalink
core/rawdb: convert some comments to godoc convention (ethereum#21384)
Browse files Browse the repository at this point in the history
  • Loading branch information
meowsbits authored Jul 29, 2020
1 parent 9e04c5e commit ff90894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/rawdb/freezer.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (f *freezer) AppendAncient(number uint64, hash, header, body, receipts, td
return nil
}

// Truncate discards any recent data above the provided threshold number.
// TruncateAncients discards any recent data above the provided threshold number.
func (f *freezer) TruncateAncients(items uint64) error {
if atomic.LoadUint64(&f.frozen) <= items {
return nil
Expand All @@ -235,7 +235,7 @@ func (f *freezer) TruncateAncients(items uint64) error {
return nil
}

// sync flushes all data tables to disk.
// Sync flushes all data tables to disk.
func (f *freezer) Sync() error {
var errs []error
for _, table := range f.tables {
Expand Down

0 comments on commit ff90894

Please sign in to comment.