eth/downloader: remove cancel check

This commit is contained in:
Gary Rong 2025-07-09 12:37:33 +08:00
parent 4a898f52f6
commit ef2b235b5e

View file

@ -45,9 +45,6 @@ func (d *Downloader) fetchHeadersByHash(p *peerConnection, hash common.Hash, amo
defer timeoutTimer.Stop()
select {
case <-d.cancelCh:
return nil, nil, errCanceled
case <-timeoutTimer.C:
// Header retrieval timed out, update the metrics
p.log.Debug("Header request timed out", "elapsed", ttl)