-
Notifications
You must be signed in to change notification settings - Fork 221
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: ping-peer command #3295
feat: ping-peer command #3295
Conversation
4c02676
to
e475d20
Compare
pub fn ping_peer(&self, dest_node_id: NodeId) { | ||
let mut liveness = self.liveness.clone(); | ||
|
||
self.executor.spawn(time::timeout(Duration::from_secs(30), async move { |
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.
Maybe just a message if it hits the timeout?
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.
Yeah first prize would be to improve liveness service to allow for a ping/pong result to be returned to a caller - for now, I think a message here will work - will add now
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.
Nice, this will be useful
Description --- `ping-peer [emoji id | pk | nodeid ]` Motivation and Context --- Allows latency tests pinging of peers using the liveness service How Has This Been Tested? --- Manually by running the command on a base node
Description
ping-peer [emoji id | pk | nodeid ]
Motivation and Context
Allows latency tests pinging of peers using the liveness service
How Has This Been Tested?
Manually by running the command on a base node