(i int)
| 113 | } |
| 114 | |
| 115 | func (c *TestCluster) GetNode(i int) *Node { |
| 116 | if i < 0 || i >= len(c.nodes) { |
| 117 | return nil |
| 118 | } |
| 119 | return c.nodes[i] |
| 120 | } |
| 121 | |
| 122 | // GetLeaderNode returns the leader node, if there is no leader or reach consensus return raft.None. |
| 123 | // excludeNodeID is the node ID that will be excluded from the leader check, it's useful when we want to |
no outgoing calls
no test coverage detected