trie prefetcher: only nil subfetcher tasks in subfetcher loop

This commit is contained in:
Jared Wasinger 2023-12-13 23:42:58 +08:00
parent 398ea0a982
commit 194d403e8e

View file

@ -252,7 +252,6 @@ func (sf *subfetcher) wait() {
return // already exiting
}
sf.closing = true
sf.tasks = nil
sf.lock.Unlock()
// Notify the prefetcher. The wake-chan is buffered, so this is async.
sf.wake <- false