From 59ea5c7f15383e02ba5572b10e77398120bb5c0a Mon Sep 17 00:00:00 2001 From: healthykim Date: Wed, 29 Oct 2025 23:25:46 +0900 Subject: [PATCH] fix: remove unused channel --- eth/downloader/downloader.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 6ca475fb3c..09837a3045 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -130,7 +130,6 @@ type Downloader struct { // Channels headerProcCh chan *headerTask // Channel to feed the header processor new tasks - bodyProcCh chan *headerTask // Channle to feed the body processor new tasks // Skeleton sync skeleton *skeleton // Header skeleton to backfill the chain with (eth2 mode) @@ -234,7 +233,6 @@ func New(stateDb ethdb.Database, mux *event.TypeMux, chain BlockChain, dropPeer chainCutoffHash: cutoffHash, dropPeer: dropPeer, headerProcCh: make(chan *headerTask, 1), - bodyProcCh: make(chan *headerTask, 1), // todo Is it enough to set this buffer size as 1 quitCh: make(chan struct{}), SnapSyncer: snap.NewSyncer(stateDb, chain.TrieDB().Scheme()), stateSyncStart: make(chan *stateSync),