mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
eth/downloader: remove unrequested tasks anyway
This commit is contained in:
parent
b48521a3e7
commit
829a042087
1 changed files with 1 additions and 1 deletions
|
|
@ -294,8 +294,8 @@ func (s *stateSync) process(req *stateReq) (nproc int, err error) {
|
|||
return 0, fmt.Errorf("invalid state node %s: %v", hash.TerminalString(), err)
|
||||
} else if err == nil {
|
||||
nproc++
|
||||
delete(req.tasks, hash)
|
||||
}
|
||||
delete(req.tasks, hash)
|
||||
}
|
||||
if err := batch.Write(); err != nil {
|
||||
return 0, err
|
||||
|
|
|
|||
Loading…
Reference in a new issue