raft: remove unused IsMsgApp
parent
0f50188652
commit
1b37f313a6
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue