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

feat: Circuit Relay #224

Merged
merged 20 commits into from
Oct 23, 2017
Merged

feat: Circuit Relay #224

merged 20 commits into from
Oct 23, 2017

Conversation

dryajov
Copy link
Member

@dryajov dryajov commented Aug 17, 2017

No description provided.

@daviddias daviddias changed the title WIP: adding circuit dialing feat: Circuit Relay Aug 23, 2017
@@ -37,6 +38,7 @@ class LimitDialer {
log('dialMany:start')
// we use a token to track if we want to cancel following dials
const token = { cancel: false }
callback = once(callback) // only call callback once
Copy link
Member Author

@dryajov dryajov Aug 28, 2017

Choose a reason for hiding this comment

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

@dignifiedquire since dialMany will possibly succeed for more than one address, the callback could resolve multiple times, this breaks in a couple of places (I'll have to see exactly where, but I believe it was either libp2p or swarm). I think having the callback called only once, for the first address that gets resolved, makes sense here?

Copy link
Member

Choose a reason for hiding this comment

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

If we expect that, it should be set up such that the first one results in the callback being called, but in addition made sure that all others are canceled and no new ones are started to avoid waste

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, good idea. Would you mind if I leave this PR as is and open an issue to enhance dialMany in another issue? I don't want to hold this PR because of it.

@dryajov dryajov changed the title feat: Circuit Relay WIP - feat: Circuit Relay Aug 28, 2017
@dryajov dryajov force-pushed the feat/circuit-v1.0.0 branch 4 times, most recently from 5c9f0af to 543572c Compare September 3, 2017 22:42
@ghost ghost assigned dryajov Oct 17, 2017
@dryajov dryajov force-pushed the feat/circuit-v1.0.0 branch from f205b29 to 5b3274b Compare October 17, 2017 21:10
@dryajov
Copy link
Member Author

dryajov commented Oct 17, 2017

This is currently blocked by - webpack/node-libs-browser#63

@ghost ghost assigned daviddias Oct 21, 2017
Copy link
Member

@daviddias daviddias left a comment

Choose a reason for hiding this comment

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

Needs docs on how to enable the Relay

@daviddias
Copy link
Member

@dryajov mind updating this PR with all the released deps and make CI happy?

@dryajov
Copy link
Member Author

dryajov commented Oct 22, 2017

Will do!

@dryajov dryajov force-pushed the feat/circuit-v1.0.0 branch from b358901 to c29c11f Compare October 23, 2017 01:30
@dryajov dryajov force-pushed the feat/circuit-v1.0.0 branch from d73f5bf to 1654f85 Compare October 23, 2017 04:06
@dryajov
Copy link
Member Author

dryajov commented Oct 23, 2017

@diasdavid I've fixed tests and updated the docs.

@daviddias daviddias changed the title WIP - feat: Circuit Relay feat: Circuit Relay Oct 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants