eth/downloader: remove a redundant sync progress check

pull/950/head
Péter Szilágyi 10 years ago
parent 48ee0777a5
commit de3a71cafd
  1. 4
      eth/downloader/downloader.go

@ -86,10 +86,6 @@ func New(hasBlock hashCheckFn, getBlock getBlockFn) *Downloader {
hashCh: make(chan hashPack, 1), hashCh: make(chan hashPack, 1),
blockCh: make(chan blockPack, 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 return downloader
} }

Loading…
Cancel
Save