swarm/storage/localstore: additional comment in writeGCSizeWorker

This commit is contained in:
Janos Guljas 2018-12-19 15:29:15 +01:00
parent 4fca004e86
commit 5ad0c8db68

View file

@ -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: