raft: remove unused IsMsgApp

release-2.0
Blake Mizerany 2014-08-23 16:32:54 -07:00 committed by Yicheng Qin
parent 0f50188652
commit 1b37f313a6
1 changed files with 0 additions and 4 deletions

View File

@ -79,10 +79,6 @@ type Message struct {
Snapshot Snapshot
}
func (m Message) IsMsgApp() bool {
return m.Type == msgApp
}
func (m Message) String() string {
return fmt.Sprintf("type=%v from=%x to=%x term=%d logTerm=%d i=%d ci=%d len(ents)=%d",
m.Type, m.From, m.To, m.Term, m.LogTerm, m.Index, m.Commit, len(m.Entries))