mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-01 00:53:47 +00:00
eth/downloader: remove a redundant sync progress check
This commit is contained in:
parent
48ee0777a5
commit
de3a71cafd
1 changed files with 0 additions and 4 deletions
|
|
@ -86,10 +86,6 @@ func New(hasBlock hashCheckFn, getBlock getBlockFn) *Downloader {
|
|||
hashCh: make(chan hashPack, 1),
|
||||
blockCh: make(chan blockPack, 1),
|
||||
}
|
||||
// Set the initial downloader state as canceled (sanity check)
|
||||
downloader.cancelCh = make(chan struct{})
|
||||
close(downloader.cancelCh)
|
||||
|
||||
return downloader
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue