eth: fix lint issues after rebase

Three files had goimports drift from resolving rebase conflicts
(eth/dropper_test.go, eth/fetcher/tx_fetcher.go, eth/handler.go) —
re-run goimports.

Also remove an unused mockConsumer.count() helper in
eth/txtracker/tracker_test.go that no test calls. The method was
left in during the peerstats split and never needed.
This commit is contained in:
Csaba Kiraly 2026-04-20 10:01:49 +02:00
parent b6b6345be9
commit e8083ed0f7
4 changed files with 38 additions and 44 deletions

View file

@ -36,9 +36,9 @@ import (
"github.com/ethereum/go-ethereum/eth/downloader"
"github.com/ethereum/go-ethereum/eth/ethconfig"
"github.com/ethereum/go-ethereum/eth/fetcher"
"github.com/ethereum/go-ethereum/eth/peerstats"
"github.com/ethereum/go-ethereum/eth/protocols/eth"
"github.com/ethereum/go-ethereum/eth/protocols/snap"
"github.com/ethereum/go-ethereum/eth/peerstats"
"github.com/ethereum/go-ethereum/eth/txtracker"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/event"

View file

@ -175,12 +175,6 @@ func (c *mockConsumer) last() signal {
return c.signals[len(c.signals)-1]
}
func (c *mockConsumer) count() int {
c.mu.Lock()
defer c.mu.Unlock()
return len(c.signals)
}
// waitStep blocks until the tracker has processed one event.
func waitStep(t *testing.T, tr *Tracker) {
t.Helper()