Skip to content

Commit

Permalink
core/state: avoid data race (ethereum#29924)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 authored and jorgemmsilva committed Jun 17, 2024
1 parent 4534107 commit 003445d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1211,8 +1211,8 @@ func (s *StateDB) commit(deleteEmptyObjects bool) (*stateUpdate, error) {
}
lock.Lock()
updates[obj.addrHash] = update
lock.Unlock()
s.StorageCommits = time.Since(start) // overwrite with the longest storage commit runtime
lock.Unlock()
return nil
})
}
Expand Down

0 comments on commit 003445d

Please sign in to comment.