private async Task <AppendEntriesResponse> GetAppendEntriesResponse(PeerState p, List <(int, LogEntry logEntry)> logsToSend)
private AppendEntriesResponse GetAppendEntriesResponse(PeerState p, List <(int, LogEntry logEntry)> logsToSend)