-
Notifications
You must be signed in to change notification settings - Fork 952
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
feat(modp2p): Ping and ConnectionState APIs #3989
base: main
Are you sure you want to change the base?
Conversation
1e3b12e
to
0c20304
Compare
return nil, fmt.Errorf("no connections to peer %s", peer) | ||
} | ||
|
||
conInfos := make([]ConnectionState, len(cons)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: connStates
.
return err | ||
} | ||
|
||
pingDuration, err := client.P2P.Ping(cmd.Context(), pid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
err
not handled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OH, it's a param below. Sry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
Yet another helpful p2p debugging endpoints with respective commands: