Raft would return back the raft.Node stored in the node.
()
| 172 | |
| 173 | // Raft would return back the raft.Node stored in the node. |
| 174 | func (n *Node) Raft() raft.Node { |
| 175 | n.RLock() |
| 176 | defer n.RUnlock() |
| 177 | return n._raft |
| 178 | } |
| 179 | |
| 180 | // SetConfState would store the latest ConfState generated by ApplyConfChange. |
| 181 | func (n *Node) SetConfState(cs *raftpb.ConfState) { |