Skip to content

Commit

Permalink
add mtx
Browse files Browse the repository at this point in the history
  • Loading branch information
DIGIX666 committed Sep 18, 2024
1 parent c0bdd58 commit d9fa4e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tm2/pkg/bft/consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,10 @@ func (cs *ConsensusState) receiveRoutine(maxSteps int) {
// priv_val tracks LastSig

// close wal now that we're done writing to it
// cs.mtx.Lock()
cs.mtx.Lock()
cs.wal.Stop()
cs.wal.Wait()
// cs.mtx.Unlock()
cs.mtx.Unlock()
close(cs.done)
}

Expand Down

0 comments on commit d9fa4e9

Please sign in to comment.