Skip to content

Commit

Permalink
core/state: avoid data race (#29924)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 committed Jun 4, 2024
1 parent 682ae83 commit 125fb1f
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 125fb1f

Please sign in to comment.