mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/storage/localstore: set DB Close timeout to 5s
This commit is contained in:
parent
e65a7e4ac6
commit
1f41915b08
1 changed files with 1 additions and 1 deletions
|
|
@ -372,7 +372,7 @@ func (db *DB) Close() (err error) {
|
|||
|
||||
// wait for gc worker and gc size write workers to
|
||||
// return before closing the shed
|
||||
timeout := time.After(10 * time.Second)
|
||||
timeout := time.After(5 * time.Second)
|
||||
select {
|
||||
case <-db.collectGarbageWorkerDone:
|
||||
case <-timeout:
|
||||
|
|
|
|||
Loading…
Reference in a new issue