mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
handle error
This commit is contained in:
parent
e45024b9f6
commit
490587d210
1 changed files with 1 additions and 1 deletions
|
|
@ -557,7 +557,7 @@ func (b *batch) Reset() {
|
|||
// Replay replays the batch contents.
|
||||
func (b *batch) Replay(w ethdb.KeyValueWriter) (bErr error) {
|
||||
reader := b.b.Reader()
|
||||
for {
|
||||
for bErr == nil {
|
||||
kind, k, v, ok, err := reader.Next()
|
||||
if !ok || err != nil {
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in a new issue