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
|
sf.trie = trie
|
||||||
}
|
}
|
||||||
// Trie opened successfully, keep prefetching items
|
// Trie opened successfully, keep prefetching items
|
||||||
for {
|
for keepRunning := range sf.wake {
|
||||||
select {
|
|
||||||
case keepRunning := <-sf.wake:
|
|
||||||
// Subfetcher was woken up, retrieve any tasks to avoid spinning the lock
|
// Subfetcher was woken up, retrieve any tasks to avoid spinning the lock
|
||||||
sf.lock.Lock()
|
sf.lock.Lock()
|
||||||
tasks := sf.tasks
|
tasks := sf.tasks
|
||||||
|
|
@ -281,5 +279,4 @@ func (sf *subfetcher) loop() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue