Commit de3a71ca authored by Péter Szilágyi's avatar Péter Szilágyi

eth/downloader: remove a redundant sync progress check

parent 48ee0777
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment