add note for test function acceptAndReply() (#230)

Co-authored-by: NingLin-P <linningde25@gmail.com>
This commit is contained in:
Trafalgar Ricardo Lu 2021-01-07 02:47:53 +08:00 committed by GitHub
parent 87f6ce88e8
commit 4b02c82dac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,