Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
swarm/storage/localstore: additional comment in writeGCSizeWorker
Browse files Browse the repository at this point in the history
  • Loading branch information
janos committed Dec 19, 2018
1 parent 4fca004 commit 5ad0c8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions swarm/storage/localstore/gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ func (db *DB) writeGCSizeWorker() {
if err != nil {
log.Error("localstore write gc size", "err", err)
}
// Wait some time before writting gc size in the next
// iteration. This prevents frequent I/O operations.
select {
case <-time.After(writeGCSizeDelay):
case <-db.close:
Expand Down

0 comments on commit 5ad0c8d

Please sign in to comment.