mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
fix lint
This commit is contained in:
parent
c7cd97fe1c
commit
dc16ec33ee
1 changed files with 26 additions and 29 deletions
|
|
@ -248,9 +248,7 @@ func (sf *subfetcher) loop() {
|
|||
sf.trie = trie
|
||||
}
|
||||
// Trie opened successfully, keep prefetching items
|
||||
for {
|
||||
select {
|
||||
case keepRunning := <-sf.wake:
|
||||
for keepRunning := range sf.wake {
|
||||
// Subfetcher was woken up, retrieve any tasks to avoid spinning the lock
|
||||
sf.lock.Lock()
|
||||
tasks := sf.tasks
|
||||
|
|
@ -281,5 +279,4 @@ func (sf *subfetcher) loop() {
|
|||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue