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

feat: ping-peer command #3295

Merged
merged 3 commits into from
Sep 6, 2021

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Sep 5, 2021

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

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 {
Copy link
Contributor

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?

Copy link
Member Author

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

Copy link
Collaborator

@stringhandler stringhandler left a 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

@aviator-app aviator-app bot merged commit a04a2a6 into tari-project:development Sep 6, 2021
@sdbondi sdbondi deleted the base-node-ping-peer branch September 8, 2021 04:24
Cifko pushed a commit to Cifko/tari that referenced this pull request Sep 10, 2021
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
@sdbondi sdbondi restored the base-node-ping-peer branch February 3, 2022 05:28
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.

3 participants