mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
try to remove sleep (#1126)
This commit is contained in:
parent
65d8a12bb1
commit
e2acbfecda
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user