rafthttp: remove unnecessary sendc from peer

release-3.1
topecongiro 2016-09-04 13:07:31 +09:00 committed by GitHub
parent 2e0dc8467d
commit ec9e77db96
1 changed files with 0 additions and 2 deletions

View File

@ -106,7 +106,6 @@ type peer struct {
msgAppV2Reader *streamReader
msgAppReader *streamReader
sendc chan raftpb.Message
recvc chan raftpb.Message
propc chan raftpb.Message
@ -145,7 +144,6 @@ func startPeer(transport *Transport, urls types.URLs, peerID types.ID, fs *stats
writer: startStreamWriter(peerID, status, fs, r),
pipeline: pipeline,
snapSender: newSnapshotSender(transport, picker, peerID, status),
sendc: make(chan raftpb.Message),
recvc: make(chan raftpb.Message, recvBufSize),
propc: make(chan raftpb.Message, maxPendingProposals),
stopc: make(chan struct{}),