We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df8db52 commit c262b76Copy full SHA for c262b76
core/state/trie_prefetcher.go
@@ -184,12 +184,7 @@ func (p *TriePrefetcher) Loop() {
184
// Retrieve all the tasks queued up and reset the sets for new insertions
185
p.taskLock.Lock()
186
accountTasks, storageTasks := p.accountTasks, p.storageTasks
187
- if len(accountTasks) > 0 {
188
- p.accountTasks = nil
189
- }
190
- if len(storageTasks) > 0 {
191
- p.storageTasks = make(map[common.Hash][]common.Hash)
192
+ p.accountTasks, p.storageTasks = nil, make(map[common.Hash][]common.Hash)
193
p.taskLock.Unlock()
194
195
// Keep prefetching the data until an interruption is triggered
0 commit comments