Skip to content

Commit

Permalink
Commented out added
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalicevic committed Jan 11, 2025
1 parent cfed49b commit 8650f2d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions internal/consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -962,11 +962,13 @@ func (cs *State) handleMsg(mi msgInfo) {

case *CommitMessage:

added, err := cs.AddCommit(msg.Commit, peerID)
if added {
// XXX Add stats about received commit
// cs.statsMsgQueue <- mi
}
_, err := cs.AddCommit(msg.Commit, peerID)

// XXX The function above returnes `added`
// If this boolean is tru we should implement
// stats for commit messages
// cs.statsMsgQueue <- mi

if err != nil {
cs.Logger.Error("Failed to add commit ", "commit", msg.Commit, "err", err)
}
Expand Down

0 comments on commit 8650f2d

Please sign in to comment.