Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

[wip] swarm parallel #88

Merged
merged 3 commits into from
Mar 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@
"pull-stream": "^3.5.0"
},
"dependencies": {
"libp2p": "~0.6.0",
"libp2p": "~0.6.2",
"libp2p-mdns": "~0.6.2",
"libp2p-multiplex": "~0.4.3",
"libp2p-railing": "~0.4.3",
"libp2p-secio": "~0.6.8",
"libp2p-spdy": "~0.10.6",
"libp2p-swarm": "~0.26.19",
"libp2p-tcp": "~0.9.4",
"libp2p-swarm": "~0.28.0",
"libp2p-tcp": "~0.10.0",
"libp2p-webrtc-star": "~0.8.10",
"libp2p-websockets": "~0.9.6",
"mafmt": "^2.1.7",
"multiaddr": "^2.2.3",
"libp2p-websockets": "~0.10.0",
"mafmt": "^2.1.8",
"multiaddr": "^2.3.0",
"peer-book": "~0.3.2",
"peer-id": "~0.8.5",
"peer-info": "~0.8.5"
Expand All @@ -73,4 +73,4 @@
"kumavis <[email protected]>",
"varunagarwal315 <[email protected]>"
]
}
}
8 changes: 7 additions & 1 deletion test/libp2p.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,13 @@ describe('libp2p-ipfs-nodejs', () => {

it('nodeA dial to nodeC and nodeD', (done) => {
let count = 0
const next = () => ++count === 2 ? check() : null

function next (err) {
expect(err).to.not.exist()
if (++count === 2) {
check()
}
}

nodeA.dial(nodeCMultiaddrTCP, next)
nodeA.dial(nodeDMultiaddrTCP, next)
Expand Down