swarm/storage/localstore: set DB Close timeout to 5s

This commit is contained in:
Janos Guljas 2019-02-22 13:20:43 +01:00
parent e65a7e4ac6
commit 1f41915b08

View file

@ -372,7 +372,7 @@ func (db *DB) Close() (err error) {
// wait for gc worker and gc size write workers to // wait for gc worker and gc size write workers to
// return before closing the shed // return before closing the shed
timeout := time.After(10 * time.Second) timeout := time.After(5 * time.Second)
select { select {
case <-db.collectGarbageWorkerDone: case <-db.collectGarbageWorkerDone:
case <-timeout: case <-timeout: