mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
fix error fatal error: concurrent map read and map write
This commit is contained in:
parent
7d162336fa
commit
3268d372a0
1 changed files with 1 additions and 1 deletions
|
|
@ -669,7 +669,7 @@ func (f *Fetcher) insert(peer string, block *types.Block) {
|
||||||
go f.broadcastBlock(block, true)
|
go f.broadcastBlock(block, true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
f.enqueue(peer, newBlock)
|
f.Enqueue(peer, newBlock)
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
// Something went very wrong, drop the peer
|
// Something went very wrong, drop the peer
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue