File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -339,14 +339,14 @@ func (sf *subfetcher) loop() {
339339 sf .lock .Unlock ()
340340
341341 // Prefetch any tasks until the loop is interrupted
342- for i , task := range tasks {
342+ for _ , task := range tasks {
343343 select {
344- case <- sf . stop :
345- // If termination is requested, add any leftover back and return
346- sf .lock . Lock ()
347- sf . tasks = append ( sf . tasks , tasks [ i :] ... )
348- sf . lock . Unlock ()
349- return
344+ //libevm:start
345+ //
346+ // The <- sf.stop case has been removed, in keeping with the equivalent change below. Future geth
347+ // versions also remove it so our modification here can be undone when merging upstream.
348+ //
349+ //libevm:end
350350
351351 case ch := <- sf .copy :
352352 // Somebody wants a copy of the current trie, grant them
You can’t perform that action at this time.
0 commit comments