try to remove sleep (#1126)

This commit is contained in:
Alex Sharov 2020-09-23 18:10:13 +07:00 committed by GitHub
parent 65d8a12bb1
commit e2acbfecda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,7 +221,6 @@ func (db *LmdbKV) Close() {
if db.env != nil {
env := db.env
db.env = nil
time.Sleep(10 * time.Millisecond) // TODO: remove after consensus/ethash/consensus.go:VerifyHeaders will spawn controllable goroutines
if err := env.Close(); err != nil {
db.log.Warn("failed to close DB", "err", err)
} else {