jmsadair / raft

An implementation of the Raft consensus protocol.
MIT License
35 stars 3 forks source link

Transport #50

Closed jmsadair closed 10 months ago

jmsadair commented 10 months ago

This PR replaces the Peer interface with the Transport interface. The main difference between Transport and Peer is that Transport manages connections to all nodes in the cluster and also serves incoming RPCs. I think this interface is a bit easier to work with than the original Peer interface. No tests were added for this - the original tests were sufficient.