raft: remove go vet compliants

This commit is contained in:
Hitoshi Mitake
2015-12-16 13:18:21 +09:00
parent ee02b50c05
commit 9b2da76796
3 changed files with 5 additions and 5 deletions

View File

@ -62,7 +62,7 @@ type EntryFormatter func([]byte) string
// Message for debugging.
func DescribeMessage(m pb.Message, f EntryFormatter) string {
var buf bytes.Buffer
fmt.Fprintf(&buf, "%x->%x %s Term:%d Log:%d/%d", m.From, m.To, m.Type, m.Term, m.LogTerm, m.Index)
fmt.Fprintf(&buf, "%x->%x %v Term:%d Log:%d/%d", m.From, m.To, m.Type, m.Term, m.LogTerm, m.Index)
if m.Reject {
fmt.Fprintf(&buf, " Rejected")
}