Removed additional locks.

pull/4369/head
frozen 2 years ago committed by Casey Gardiner
parent 6cfe6b32a1
commit 883ac07baa
  1. 1
      consensus/consensus_service.go
  2. 2
      consensus/consensus_v2.go

@ -493,7 +493,6 @@ func (consensus *Consensus) switchPhase(subject string, desired FBFTPhase) {
Str("switchPhase:", subject)
consensus.phase.Set(desired)
return
}
var (

@ -47,8 +47,6 @@ const (
// IsViewChangingMode return true if curernt mode is viewchanging
func (consensus *Consensus) IsViewChangingMode() bool {
//consensus.mutex.RLock()
//defer consensus.mutex.RUnlock()
return consensus.isViewChangingMode()
}

Loading…
Cancel
Save