jmsadair / raft

An implementation of the Raft consensus protocol.
MIT License
31 stars 2 forks source link

Transport #50

Closed jmsadair closed 5 months ago

jmsadair commented 5 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.