mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
eth/downloader: remove last use of cancelCh in statesync.go
Fixes TestDeliverHeadersHang*Fast and (hopefully) the weird cancellation behaviour at the end of fast sync.
This commit is contained in:
parent
339bc104b4
commit
baa79e9df0
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ func (d *Downloader) syncState(root common.Hash) *stateSync {
|
|||
s := newStateSync(d, root)
|
||||
select {
|
||||
case d.stateSyncStart <- s:
|
||||
case <-d.cancelCh:
|
||||
case <-d.quitCh:
|
||||
s.err = errCancelStateFetch
|
||||
close(s.done)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue