mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
les/fetcher.go: Removed depcreated channel
This commit is contained in:
parent
20af817433
commit
6d43b167c0
1 changed files with 0 additions and 2 deletions
|
|
@ -50,7 +50,6 @@ type lightFetcher struct {
|
||||||
lastUpdateStats *updateStatsEntry
|
lastUpdateStats *updateStatsEntry
|
||||||
syncing bool
|
syncing bool
|
||||||
syncDone chan *peer
|
syncDone chan *peer
|
||||||
SyncedCh chan bool
|
|
||||||
|
|
||||||
reqMu sync.RWMutex // reqMu protects access to sent header fetch requests
|
reqMu sync.RWMutex // reqMu protects access to sent header fetch requests
|
||||||
requested map[uint64]fetchRequest
|
requested map[uint64]fetchRequest
|
||||||
|
|
@ -117,7 +116,6 @@ func newLightFetcher(pm *ProtocolManager) *lightFetcher {
|
||||||
timeoutChn: make(chan uint64),
|
timeoutChn: make(chan uint64),
|
||||||
requestChn: make(chan bool, 100),
|
requestChn: make(chan bool, 100),
|
||||||
syncDone: make(chan *peer),
|
syncDone: make(chan *peer),
|
||||||
SyncedCh: make(chan bool, 1),
|
|
||||||
maxConfirmedTd: big.NewInt(0),
|
maxConfirmedTd: big.NewInt(0),
|
||||||
}
|
}
|
||||||
pm.peers.notify(f)
|
pm.peers.notify(f)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue