From 1f41915b08b194e0a24b0e6cf6080d5e6c1fa541 Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Fri, 22 Feb 2019 13:20:43 +0100 Subject: [PATCH] swarm/storage/localstore: set DB Close timeout to 5s --- swarm/storage/localstore/localstore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm/storage/localstore/localstore.go b/swarm/storage/localstore/localstore.go index 6e834f4c5b..f92a9c1f2a 100644 --- a/swarm/storage/localstore/localstore.go +++ b/swarm/storage/localstore/localstore.go @@ -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: