state returns the current HA state for this node.
()
| 122 | |
| 123 | // state returns the current HA state for this node. |
| 124 | func (n *Node) state() spb.HaState { |
| 125 | n.statusLock.RLock() |
| 126 | defer n.statusLock.RUnlock() |
| 127 | return n.haStatus.State |
| 128 | } |
| 129 | |
| 130 | // setState changes the HA state for this node. |
| 131 | func (n *Node) setState(s spb.HaState) { |
no outgoing calls