From 883ac07baa1f590d7d272ba7c178c0ac7cc9be10 Mon Sep 17 00:00:00 2001 From: frozen <355847+Frozen@users.noreply.github.com> Date: Wed, 2 Nov 2022 20:35:59 +0800 Subject: [PATCH] Removed additional locks. --- consensus/consensus_service.go | 1 - consensus/consensus_v2.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/consensus/consensus_service.go b/consensus/consensus_service.go index ee0e6026c..9a171ea1d 100644 --- a/consensus/consensus_service.go +++ b/consensus/consensus_service.go @@ -493,7 +493,6 @@ func (consensus *Consensus) switchPhase(subject string, desired FBFTPhase) { Str("switchPhase:", subject) consensus.phase.Set(desired) - return } var ( diff --git a/consensus/consensus_v2.go b/consensus/consensus_v2.go index 4db16a372..876613d81 100644 --- a/consensus/consensus_v2.go +++ b/consensus/consensus_v2.go @@ -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() }