mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
swarm/storage/localstore: additional comment in writeGCSizeWorker
This commit is contained in:
parent
4fca004e86
commit
5ad0c8db68
1 changed files with 2 additions and 0 deletions
|
|
@ -156,6 +156,8 @@ func (db *DB) writeGCSizeWorker() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("localstore write gc size", "err", err)
|
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 {
|
select {
|
||||||
case <-time.After(writeGCSizeDelay):
|
case <-time.After(writeGCSizeDelay):
|
||||||
case <-db.close:
|
case <-db.close:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue