forked from cerc-io/plugeth
core/rawdb: convert some comments to godoc convention (#21384)
This commit is contained in:
parent
9e04c5ec83
commit
ff90894636
@ -221,7 +221,7 @@ func (f *freezer) AppendAncient(number uint64, hash, header, body, receipts, td
|
|||||||
return nil
|
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 {
|
func (f *freezer) TruncateAncients(items uint64) error {
|
||||||
if atomic.LoadUint64(&f.frozen) <= items {
|
if atomic.LoadUint64(&f.frozen) <= items {
|
||||||
return nil
|
return nil
|
||||||
@ -235,7 +235,7 @@ func (f *freezer) TruncateAncients(items uint64) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// sync flushes all data tables to disk.
|
// Sync flushes all data tables to disk.
|
||||||
func (f *freezer) Sync() error {
|
func (f *freezer) Sync() error {
|
||||||
var errs []error
|
var errs []error
|
||||||
for _, table := range f.tables {
|
for _, table := range f.tables {
|
||||||
|
Loading…
Reference in New Issue
Block a user