From ef2b235b5e4fd69c13e9a5685553d32ca0e91834 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Wed, 9 Jul 2025 12:37:33 +0800 Subject: [PATCH] eth/downloader: remove cancel check --- eth/downloader/fetchers.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/eth/downloader/fetchers.go b/eth/downloader/fetchers.go index 4ebb9bbc98..6e5c65eb20 100644 --- a/eth/downloader/fetchers.go +++ b/eth/downloader/fetchers.go @@ -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)