mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 21:54:30 +00:00
eth/fetcher: fix copyloopvar for Go 1.22+ (#1505)
Co-authored-by: wit <wit765765346@gmail>
This commit is contained in:
parent
7b92ec7d5a
commit
1b88f2588e
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue