From 3268d372a00f5b6b3d16b3f3c812e0e8980797d2 Mon Sep 17 00:00:00 2001 From: parmarrushabh Date: Mon, 12 Nov 2018 11:39:43 +0530 Subject: [PATCH] fix error fatal error: concurrent map read and map write --- eth/fetcher/fetcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/fetcher/fetcher.go b/eth/fetcher/fetcher.go index d6e17c36f0..f01e8ace70 100644 --- a/eth/fetcher/fetcher.go +++ b/eth/fetcher/fetcher.go @@ -669,7 +669,7 @@ func (f *Fetcher) insert(peer string, block *types.Block) { go f.broadcastBlock(block, true) return } - f.enqueue(peer, newBlock) + f.Enqueue(peer, newBlock) return default: // Something went very wrong, drop the peer