goraft / raft

UNMAINTAINED: A Go implementation of the Raft distributed consensus protocol.
MIT License
2.43k stars 480 forks source link

Minor refactor of AddPeer/RemovePeer. #112

Closed benbjohnson closed 11 years ago

benbjohnson commented 11 years ago

@xiangli-cmu Simplifying the AddPeer() and RemovePeer() functions. There's a bunch of red/green in the diff but the function is pretty straightforward if you look at the file itself.

xiang90 commented 11 years ago

lgtm