// IsInJointState judges whether the Peer is in joint state.
IsInJointState judges whether the Peer is in joint state.
// IsInJointState judges whether the Peer is in joint state .
func IsInJointState(peers ...*metapb.Peer) bool {
	for _, peer := range peers {
		switch peer.GetRole() {
		case metapb.PeerRole_IncomingVoter, metapb.PeerRole_DemotingVoter:
			return true
		default:
		}
	}
	return false
}
func IsInJointState ( peers ... * metapb . Peer ) bool { for _ , peer := range peers { switch peer . GetRole ( ) { case metapb . PeerRole_IncomingVoter , metapb . PeerRole_DemotingVoter : return true default : } } return false }
IsInJointState judges whether the Peer is in joint state.
IsInJointState judges whether the Peer is in joint state .