raft: set propc, readyc to be nil before run loop

This commit is contained in:
Yicheng Qin 2014-09-12 12:57:50 -07:00
parent 30289dad5c
commit 34db45a948

View File

@ -86,8 +86,8 @@ func (n *Node) Stop() {
}
func (n *Node) run(r *raft) {
propc := n.propc
readyc := n.readyc
var propc chan pb.Message
var readyc chan Ready
var lead int64
prevSt := r.State