diff --git a/eth/fetcher/fetcher.go b/eth/fetcher/fetcher.go index 04e9f9861d..ae0ead3e52 100644 --- a/eth/fetcher/fetcher.go +++ b/eth/fetcher/fetcher.go @@ -397,7 +397,7 @@ func (f *Fetcher) loop() { log.Trace("Fetching scheduled headers", "peer", peer, "list", hashes) // Create a closure of the fetch and schedule in on a new thread - fetchHeader, hashes := f.fetching[hashes[0]].fetchHeader, hashes + fetchHeader := f.fetching[hashes[0]].fetchHeader go func() { if f.fetchingHook != nil { f.fetchingHook(hashes)