Skip to content

Commit 6c649de

Browse files
authored
Merge pull request etcd-io#10281 from tbg/print-hint-reject-app-resp
raft: print RejectHint of zero on MsgAppResp
2 parents f28945b + 1569f48 commit 6c649de

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

raft/util.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,7 @@ func DescribeMessage(m pb.Message, f EntryFormatter) string {
7777
var buf bytes.Buffer
7878
fmt.Fprintf(&buf, "%x->%x %v Term:%d Log:%d/%d", m.From, m.To, m.Type, m.Term, m.LogTerm, m.Index)
7979
if m.Reject {
80-
fmt.Fprintf(&buf, " Rejected")
81-
if m.RejectHint != 0 {
82-
fmt.Fprintf(&buf, "(Hint:%d)", m.RejectHint)
83-
}
80+
fmt.Fprintf(&buf, " Rejected (Hint: %d)", m.RejectHint)
8481
}
8582
if m.Commit != 0 {
8683
fmt.Fprintf(&buf, " Commit:%d", m.Commit)

0 commit comments

Comments
 (0)