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

client list-asks --by-ping #5060

Merged
merged 1 commit into from
Nov 30, 2020
Merged

client list-asks --by-ping #5060

merged 1 commit into from
Nov 30, 2020

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Nov 30, 2020

No description provided.

Comment on lines +1332 to +1335
_, err = api.ClientQueryAsk(ctx, *mi.PeerId, miner)
if err != nil {
return
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could implement this using libp2p ping, but that requires exposing it on the API..

With this I'm getting 20-30ms pings to peers in the EU, so I'd say it's good enough for now

Copy link
Contributor

@dirkmc dirkmc left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Hmm looks like the test failures may be legit though

@magik6k magik6k merged commit 3e143ca into master Nov 30, 2020
@magik6k magik6k deleted the feat/listasks-ping branch November 30, 2020 22:14
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