Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

fix: don't dial circuit if no transports available #236

Merged
merged 1 commit into from
Nov 18, 2017

Conversation

dryajov
Copy link
Member

@dryajov dryajov commented Nov 18, 2017

Currently, if there are no transports registered libp2p-swarm will still try to dial over circuit relay. This PR adds an error to signal that no protocols are registered for dialing.

@ghost ghost assigned dryajov Nov 18, 2017
@ghost ghost added the in progress label Nov 18, 2017
@dryajov dryajov mentioned this pull request Nov 18, 2017
6 tasks
@dryajov
Copy link
Member Author

dryajov commented Nov 18, 2017

@diasdavid perhaps not enabling circuit at all when there are no transports registered is also required, but IMHO this is the safest way of catching all the edge cases.

@daviddias daviddias merged commit f22ee2a into master Nov 18, 2017
@ghost ghost removed the in progress label Nov 18, 2017
@daviddias daviddias deleted the fix/no-transports-dial branch November 18, 2017 21:41
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants