ConfState would return the latest ConfState stored in node.
()
| 214 | |
| 215 | // ConfState would return the latest ConfState stored in node. |
| 216 | func (n *Node) ConfState() *raftpb.ConfState { |
| 217 | n.RLock() |
| 218 | defer n.RUnlock() |
| 219 | return n._confState |
| 220 | } |
| 221 | |
| 222 | // Peer returns the address of the peer with the given id. |
| 223 | func (n *Node) Peer(pid uint64) (string, bool) { |
no test coverage detected