raft: change index and term to int64

This commit is contained in:
Xiang Li
2014-07-10 22:51:37 -07:00
committed by Yicheng Qin
parent e11c7f35b4
commit 30f4d9faea
10 changed files with 123 additions and 121 deletions

View File

@@ -39,7 +39,7 @@ func TestTickMsgBeat(t *testing.T) {
n.Add(int64(i), "", nil)
for _, m := range n.Msgs() {
if m.Type == msgApp {
n.Step(Message{From: m.To, Type: msgAppResp, Index: m.Index + len(m.Entries)})
n.Step(Message{From: m.To, Type: msgAppResp, Index: m.Index + int64(len(m.Entries))})
}
}
// ignore commit index update messages