From 4b02c82dac42893ffc140d3628a70860c1147729 Mon Sep 17 00:00:00 2001 From: Trafalgar Ricardo Lu Date: Thu, 7 Jan 2021 02:47:53 +0800 Subject: [PATCH] add note for test function acceptAndReply() (#230) Co-authored-by: NingLin-P --- raft/raft_paper_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/raft/raft_paper_test.go b/raft/raft_paper_test.go index 3cfa800d..5e064c13 100644 --- a/raft/raft_paper_test.go +++ b/raft/raft_paper_test.go @@ -916,6 +916,7 @@ func acceptAndReply(m pb.Message) pb.Message { if m.MsgType != pb.MessageType_MsgAppend { panic("type should be MessageType_MsgAppend") } + // Note: reply message don't contain LogTerm return pb.Message{ From: m.To, To: m.From,