This repository has been archived by the owner on Aug 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
feat: Circuit Relay #224
Merged
Merged
feat: Circuit Relay #224
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
deb6b64
feat: adding circuit dialing
dryajov c6089d2
fix: revert circuit back to be part of the transports array
dryajov d34a8aa
fix: correct sorting to push `Circuit` last
dryajov 44c2656
test: adding circuit tests
dryajov 04b8c52
fix: remove needless flag
dryajov 563cbe3
test: adding sinon dev dependency
dryajov d60c5bf
feat: use object.assign for default conf vals
dryajov ff5683a
feat: disable circuit by default
dryajov 33a0426
fix: dial on circuit last but fallback to circuit if no explicit circ…
dryajov f0e7326
chore: make deps more deterministic
dryajov 38b2821
chore: update deps
daviddias 062c054
test: upgrading to new aegir
dryajov c96198d
chore: updating ci files
dryajov a480f37
test: fixing incorrect timeout function invocation
dryajov 5b3274b
chore: fixing package.json
dryajov 6dcfff9
chore
daviddias fc4af6f
chore
daviddias ed97a84
test: skip spdy tests and adjust timeouts
dryajov c29c11f
docs: adding circuit relay docs
dryajov 1654f85
test: adjusting timeouts
dryajov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,4 @@ addons: | |
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-4.8 | ||
- g++-4.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,19 +4,19 @@ | |
"description": "libp2p swarm implementation in JavaScript", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"lint": "gulp lint", | ||
"build": "gulp build", | ||
"test": "gulp test --dom", | ||
"test:node": "gulp test:node", | ||
"test:browser": "gulp test:browser --dom", | ||
"release": "gulp release --dom", | ||
"release-minor": "gulp release --type minor --dom", | ||
"release-major": "gulp release --type major --dom", | ||
"coverage": "gulp coverage", | ||
"coverage-publish": "aegir-coverage publish" | ||
"lint": "aegir lint", | ||
"build": "aegir build", | ||
"test": "aegir test --target node --target browser --no-parallel", | ||
"test:node": "aegir test --target node --no-parallel", | ||
"test:browser": "aegir test --target browser --no-parallel", | ||
"release": "aegir test release --target node --target browser --no-parallel", | ||
"release-minor": "aegir release --type minor --target node --target browser --no-parallel", | ||
"release-major": "aegir release --type major --target node --target browser --no-parallel", | ||
"coverage": "aegir coverage", | ||
"coverage-publish": "aegir coverage --provider coveralls" | ||
}, | ||
"browser": { | ||
"zlib": "browserify-zlib-next" | ||
"zlib": "browserify-zlib" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
@@ -40,35 +40,37 @@ | |
"npm": ">=3.0.0" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^11.0.2", | ||
"aegir": "^12.1.0", | ||
"buffer-loader": "0.0.1", | ||
"chai": "^4.1.2", | ||
"dirty-chai": "^2.0.1", | ||
"gulp": "^3.9.1", | ||
"libp2p-multiplex": "~0.5.0", | ||
"libp2p-secio": "~0.8.1", | ||
"libp2p-spdy": "~0.11.0", | ||
"libp2p-tcp": "~0.11.0", | ||
"libp2p-tcp": "~0.11.1", | ||
"libp2p-webrtc-star": "~0.13.2", | ||
"libp2p-websockets": "~0.10.1", | ||
"libp2p-websockets": "~0.10.2", | ||
"peer-book": "~0.5.1", | ||
"pre-commit": "^1.2.2", | ||
"pull-goodbye": "0.0.2", | ||
"peer-book": "~0.5.1", | ||
"sinon": "^4.0.1", | ||
"webrtcsupport": "^2.2.0" | ||
}, | ||
"dependencies": { | ||
"async": "^2.5.0", | ||
"browserify-zlib-next": "^1.0.1", | ||
"debug": "^3.0.1", | ||
"browserify-zlib": "^0.2.0", | ||
"debug": "^3.1.0", | ||
"interface-connection": "~0.3.2", | ||
"ip-address": "^5.8.8", | ||
"libp2p-circuit": "~0.1.0", | ||
"libp2p-identify": "~0.6.1", | ||
"lodash.includes": "^4.3.0", | ||
"multiaddr": "^3.0.1", | ||
"multistream-select": "~0.13.5", | ||
"once": "^1.4.0", | ||
"peer-id": "~0.10.1", | ||
"peer-info": "~0.11.0", | ||
"peer-id": "^0.10.2", | ||
"peer-info": "^0.11.0", | ||
"pull-stream": "^3.6.1" | ||
}, | ||
"contributors": [ | ||
|
@@ -88,4 +90,4 @@ | |
"greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>", | ||
"ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ <[email protected]>" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.