Skip to content

Commit

Permalink
fix concurrent write seen of subfetcher (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro authored Oct 12, 2021
1 parent 59d3b53 commit 5e210b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state/trie_prefetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (p *triePrefetcher) abortLoop() {
func (p *triePrefetcher) close() {
for _, fetcher := range p.fetchers {
p.abortChan <- fetcher // safe to do multiple times

<-fetcher.term
if metrics.Enabled {
if fetcher.root == p.root {
p.accountLoadMeter.Mark(int64(len(fetcher.seen)))
Expand Down

0 comments on commit 5e210b3

Please sign in to comment.