Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display ids as decimal, not hexa #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

rakoo
Copy link

@rakoo rakoo commented Jun 28, 2023

Reopening !19 properly

@shaj13
Copy link
Owner

shaj13 commented Jul 9, 2023

Why do we need this change?
hexa (%x) used to align with etcd logs https://github.com/etcd-io/raft/blob/main/node.go#L370

@shaj13 shaj13 self-requested a review July 9, 2023 14:26
@@ -80,7 +80,7 @@ func (r *router) get(gid uint64) (transport.Controller, error) {
defer r.mu.Unlock()
ctrl, ok := r.ctrls[gid]
if !ok {
return nil, fmt.Errorf("raft: unknown group id %x", gid)
return nil, fmt.Errorf("raft: unknown group id %d", gid)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants