diff --git a/contrib/raftexample/raft.go b/contrib/raftexample/raft.go index b1defe2c3..67fa47ae9 100644 --- a/contrib/raftexample/raft.go +++ b/contrib/raftexample/raft.go @@ -155,7 +155,7 @@ func (rc *raftNode) publishEntries(ents []raftpb.Entry) bool { case raftpb.EntryConfChange: var cc raftpb.ConfChange cc.Unmarshal(ents[i].Data) - rc.node.ApplyConfChange(cc) + rc.confState = *rc.node.ApplyConfChange(cc) switch cc.Type { case raftpb.ConfChangeAddNode: if len(cc.Context) > 0 {