Skip to content

Commit de3a71c

Browse files
committed
eth/downloader: remove a redundant sync progress check
1 parent 48ee077 commit de3a71c

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎eth/downloader/downloader.go‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ func New(hasBlock hashCheckFn, getBlock getBlockFn) *Downloader {
8686
hashCh: make(chan hashPack, 1),
8787
blockCh: make(chan blockPack, 1),
8888
}
89-
// Set the initial downloader state as canceled (sanity check)
90-
downloader.cancelCh = make(chan struct{})
91-
close(downloader.cancelCh)
92-
9389
return downloader
9490
}
9591

0 commit comments

Comments
 (0)