mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
swarm/storage: improved comment
This commit is contained in:
parent
bf193d8b61
commit
c9cdc5edcf
1 changed files with 1 additions and 1 deletions
|
|
@ -418,8 +418,8 @@ func (s *LDBStore) Import(in io.Reader) (int64, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Cleanup iterates over the database and deletes chunks if they pass the `f` condition
|
||||||
func (s *LDBStore) Cleanup(f func(*chunk) bool) {
|
func (s *LDBStore) Cleanup(f func(*chunk) bool) {
|
||||||
//Iterates over the database and checks that there are no chunks bigger than 4kb
|
|
||||||
var errorsFound, removed, total int
|
var errorsFound, removed, total int
|
||||||
|
|
||||||
it := s.db.NewIterator()
|
it := s.db.NewIterator()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue