raft/rawnode.go
func (rn *RawNode) ProposeConfChange(cc pb.ConfChange) error {
	data, err := cc.Marshal()
	if err != nil {
		return err
	}
	return rn.raft.Step(pb.Message{
		Type: pb.MsgProp,
		Entries: []pb.Entry{
			{Type: pb.EntryConfChange, Data: data},
		},
	})
}
func (rn *RawNode) ProposeConfChange(cc pb.ConfChange) error {
	data, err := cc.Marshal()
	if err != nil {
		return err
	}
	return rn.raft.Step(pb.Message{
		Type: pb.MsgProp,
		Entries: []pb.Entry{
			{Type: pb.EntryConfChange, Data: data},
		},
	})
}
func ( rn * RawNode ) ProposeConfChange ( cc pb . ConfChange ) error { data , err := cc . Marshal ( ) if err != nil { return err } return rn . raft . Step ( pb . Message { Type : pb . MsgProp , Entries : [ ] pb . Entry { { Type : pb . EntryConfChange , Data : data } , } , } ) }
// ProposeConfChange proposes a config change.
ProposeConfChange proposes a config change .