mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
swarm/storage/localstore: add comment in collectGarbageWorker
This commit is contained in:
parent
33726a4ba3
commit
25a068a048
1 changed files with 3 additions and 1 deletions
|
|
@ -48,7 +48,9 @@ func (db *DB) collectGarbageWorker() {
|
|||
for {
|
||||
select {
|
||||
case <-db.collectGarbageTrigger:
|
||||
// TODO: Add comment about done
|
||||
// run a single collect garbage run and
|
||||
// if done is false, gcBatchSize is reached and
|
||||
// another collect garbage run is needed
|
||||
collectedCount, done, err := db.collectGarbage()
|
||||
if err != nil {
|
||||
log.Error("localstore collect garbage", "err", err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue