Skip to content

Swarm dial returns ok even if peer is not accessible #2844

Closed Answered by thomaseizinger
haider-rs asked this question in Q&A
Discussion options

You must be logged in to vote

dial is asynchronous and only some pre-conditions are checked synchronously. You need to poll the Swarm (via next for example) and have it make progress which will eventually yield an event that informs you whether the dial was successful.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@haider-rs
Comment options

Answer selected by haider-rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants