[viewchange] remove duplicated unlock

Signed-off-by: Leo Chen <leo@harmony.one>
pull/3386/head
Leo Chen 4 years ago
parent 08cb490163
commit 1001ac573d
  1. 1
      consensus/consensus_service.go

@ -95,7 +95,6 @@ func (consensus *Consensus) UpdatePublicKeys(pubKeys []bls_cosi.PublicKeyWrapper
} else { } else {
utils.Logger().Error(). utils.Logger().Error().
Msg("[UpdatePublicKeys] Participants is empty") Msg("[UpdatePublicKeys] Participants is empty")
consensus.pubKeyLock.Unlock()
} }
consensus.pubKeyLock.Unlock() consensus.pubKeyLock.Unlock()
// reset states after update public keys // reset states after update public keys

Loading…
Cancel
Save