Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Upgrade to use latest libp2p modules #38

Merged
merged 5 commits into from
Dec 1, 2016

Conversation

nunofmn
Copy link
Contributor

@nunofmn nunofmn commented Nov 22, 2016

Related to #16

Correct libp2p modules calls, accordingly to the current APIs.
@@ -23,10 +23,11 @@ function Bootstrap (peerList, options, swarm) {
var mh = multiaddr(peerCandidate.split('/').splice(0, 5).join('/'))
var peerId = Id.createFromB58String(peerCandidate.split('/').splice(6)[0])

var p = new Peer(peerId, [mh])
var p = new Peer(peerId)
Copy link
Member

Choose a reason for hiding this comment

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

This should be async with the new peer-info

var Peer = require('peer-info')
var Swarm = require('libp2p-swarm')
var tcp = require('libp2p-tcp')
var Tcp = require('libp2p-tcp')
Copy link
Member

Choose a reason for hiding this comment

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

s/Tcp/TCP/g

@daviddias
Copy link
Member

@nunofmn could you also update the travis and circle configs to the latest ones in conformance with js-ipfs?

also, mv lib src if you can, so that aegir does the right thing

@coveralls
Copy link

coveralls commented Nov 30, 2016

Coverage Status

Changes Unknown when pulling 6cd880e on nunofmn:16-upgrade-libp2p-modules into ** on libp2p:master**.

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.

Overall LGTM, wanna just update the logger to debug?

"pre-commit": "^1.1.2"
},
"dependencies": {
"ipfs-logger": "^0.1.0",
"ipfs-logger": "^0.1.1",
Copy link
Member

Choose a reason for hiding this comment

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

This is no longer used, could you switch it to use debug instead?

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 9187cfa on nunofmn:16-upgrade-libp2p-modules into ** on libp2p:master**.

1 similar comment
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 9187cfa on nunofmn:16-upgrade-libp2p-modules into ** on libp2p:master**.

@daviddias daviddias merged commit 1b87620 into libp2p:master Dec 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants