mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 12:07:17 +00:00
eth/downloader: remove a redundant sync progress check
This commit is contained in:
parent
48ee0777a5
commit
de3a71cafd
@ -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 New Issue
Block a user