From ff90894636babb37deed5ff444cef3af66d5894e Mon Sep 17 00:00:00 2001 From: meowsbits Date: Wed, 29 Jul 2020 14:53:59 -0500 Subject: [PATCH] core/rawdb: convert some comments to godoc convention (#21384) --- core/rawdb/freezer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/rawdb/freezer.go b/core/rawdb/freezer.go index 9a40b2cf43..c5bb7cf1f4 100644 --- a/core/rawdb/freezer.go +++ b/core/rawdb/freezer.go @@ -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 @@ -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 {