Skip to content

Commit

Permalink
Fix duplicate mutex lock
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Aug 21, 2023
1 parent 1dafbe8 commit 177d73e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cometmock/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ func (m *MapStorage) UnlockAfterStateUpdate() {
}

func (m *MapStorage) UpdateStores(height int64, block *types.Block, commit *types.Commit, state *cometstate.State, responses *protostate.ABCIResponses) error {
m.stateUpdateMutex.Lock()
defer m.stateUpdateMutex.Unlock()
m.insertBlock(height, block)
m.insertCommit(height, commit)
m.insertState(height, state)
Expand Down

0 comments on commit 177d73e

Please sign in to comment.