Skip to content

Commit

Permalink
Merge pull request #979 from ripienaar/traffic_reorder
Browse files Browse the repository at this point in the history
Change ordering of raft columns
  • Loading branch information
ripienaar authored Jan 27, 2024
2 parents 5dc97f3 + 4ccd9fa commit ed7b2ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/traffic_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ func (c *trafficCmd) monitor(_ *fisk.ParseContext) error {
if len(raftRows) > 10 {
raftRows = raftRows[1:]
}
raftRows = append(raftRows, []any{c.raftProp.Comma(), c.raftVote.Comma(), c.raftAppend.Comma(), c.raftRemovePeer.Comma(), c.raftReply.Comma(), c.raftC.Comma()})
raftRows = append(raftRows, []any{c.raftVote.Comma(), c.raftAppend.Comma(), c.raftReply.Comma(), c.raftRemovePeer.Comma(), c.raftProp.Comma(), c.raftC.Comma()})

table := newTableWriter("Raft Traffic")
table.AddHeaders("Proposal", "Vote", "Append", "Remove Peer", "Reply", "Total Messages")
table.AddHeaders("Vote", "Append", "Reply", "Remove Peer", "Proposal", "Total Messages")
for i := range raftRows {
table.AddRow(raftRows[i]...)
}
Expand Down

0 comments on commit ed7b2ee

Please sign in to comment.