eth/downloader: remove a redundant sync progress check

This commit is contained in:
Péter Szilágyi 2015-05-13 16:56:01 +03:00
parent 48ee0777a5
commit de3a71cafd

View File

@ -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
}