mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
eth/downloader: fix leak in runStateSync
This commit is contained in:
parent
baa79e9df0
commit
6588e66420
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ func (d *Downloader) runStateSync(s *stateSync) *stateSync {
|
||||||
|
|
||||||
// Send the next finished request to the current sync:
|
// Send the next finished request to the current sync:
|
||||||
case deliverReqCh <- deliverReq:
|
case deliverReqCh <- deliverReq:
|
||||||
finishedReqs = finishedReqs[1:]
|
finishedReqs = append(finishedReqs[:0], finishedReqs[1:]...)
|
||||||
|
|
||||||
// Handle incoming state packs:
|
// Handle incoming state packs:
|
||||||
case pack := <-d.stateCh:
|
case pack := <-d.stateCh:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue