consensus: msg saving and replay

This commit is contained in:
Ethan Buchman
2015-12-22 15:23:22 -05:00
parent 892174997b
commit 6aaa5fb0bf
8 changed files with 213 additions and 39 deletions

View File

@ -106,7 +106,6 @@ func (app *remoteAppConn) sendRequestsRoutine() {
app.StopForError(err)
return
}
log.Debug("Sent request", "requestType", reflect.TypeOf(reqres.Request), "request", reqres.Request)
if _, ok := reqres.Request.(tmsp.RequestFlush); ok {
err = app.bufWriter.Flush()
if err != nil {
@ -133,7 +132,6 @@ func (app *remoteAppConn) recvResponseRoutine() {
case tmsp.ResponseException:
app.StopForError(errors.New(res.Error))
default:
log.Debug("Received response", "responseType", reflect.TypeOf(res), "response", res)
err := app.didRecvResponse(res)
if err != nil {
app.StopForError(err)