mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: remove unused IsMsgApp
This commit is contained in:
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…
x
Reference in New Issue
Block a user