Skip to content

Commit

Permalink
rafthttp: configurable stream reader retry timeout
Browse files Browse the repository at this point in the history
minor changes after code review
  • Loading branch information
Vitaly Isaev committed Jun 1, 2017
1 parent 30bdad8 commit 0a9092a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rafthttp/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (cw *streamWriter) closeUnlocked() bool {
return false
}
if err := cw.closer.Close(); err != nil {
plog.Errorf("Peer %s (writer) connection close error: %v", cw.peerID, err)
plog.Errorf("peer %s (writer) connection close error: %v", cw.peerID, err)
}
if len(cw.msgc) > 0 {
cw.r.ReportUnreachable(uint64(cw.peerID))
Expand Down Expand Up @@ -501,7 +501,7 @@ func (cr *streamReader) dial(t streamType) (io.ReadCloser, error) {
func (cr *streamReader) close() {
if cr.closer != nil {
if err := cr.closer.Close(); err != nil {
plog.Errorf("Peer %s (reader) connection close error: %v", cr.peerID, err)
plog.Errorf("peer %s (reader) connection close error: %v", cr.peerID, err)
}
}
cr.closer = nil
Expand Down

0 comments on commit 0a9092a

Please sign in to comment.