From c9cdc5edcfd17abdcc11d5215d7ce7aed6cba919 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Tue, 2 Oct 2018 15:47:36 +0200 Subject: [PATCH] swarm/storage: improved comment --- swarm/storage/ldbstore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm/storage/ldbstore.go b/swarm/storage/ldbstore.go index 71d32e50d5..38b54e8f14 100644 --- a/swarm/storage/ldbstore.go +++ b/swarm/storage/ldbstore.go @@ -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) { - //Iterates over the database and checks that there are no chunks bigger than 4kb var errorsFound, removed, total int it := s.db.NewIterator()