Add SetPeers() method to forcibly update the peerset.

This was done in anticipation for Expect mode in Consul.

Signed-off-by: Robert Xu <robxu9@gmail.com>
Fix threading issues with peer setting.

Signed-off-by: Robert Xu <robxu9@gmail.com>
If we're a candidate and we get peers, fall back to follower.

We don't want a disjoint quorum.

Signed-off-by: Robert Xu <robxu9@gmail.com>
Add testsuite for raft SetPeers

Signed-off-by: Robert Xu <robxu9@gmail.com>
Create MakeClusterNoPeers to make sure we don't enable single node mode.

I can't read.

Signed-off-by: Robert Xu <robxu9@gmail.com>
Check future value of SetPeers.

Signed-off-by: Robert Xu <robxu9@gmail.com>
Merge pull request #17 from robxu9/master

Add SetPeers() method to forcibly update the peerset.