public PeerState(IPeer peer, MatchIndex matchIndex, NextIndex nextIndex) { Peer = peer; MatchIndex = matchIndex; NextIndex = nextIndex; }
public void UpdateNextIndex(int nextLogIndexToSendToPeer) { NextIndex = new NextIndex(Peer, nextLogIndexToSendToPeer); }