Merge pull request #692 from nspcc-dev/persist-timer-fix

core: reschedule the next persist in a second from previous one
This commit is contained in:
Roman Khimov 2020-02-26 10:34:40 +03:00 committed by GitHub
commit b1b184f77f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -278,8 +278,8 @@ func (bc *Blockchain) Run() {
if err != nil {
bc.log.Warn("failed to persist blockchain", zap.Error(err))
}
}()
persistTimer.Reset(persistInterval)
}()
}
}
}