-
Notifications
You must be signed in to change notification settings - Fork 21
Conversation
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) |
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.
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') |
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.
s/Tcp/TCP/g
@nunofmn could you also update the travis and circle configs to the latest ones in conformance with js-ipfs? also, |
Changes Unknown when pulling 6cd880e on nunofmn:16-upgrade-libp2p-modules into ** on libp2p:master**. |
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.
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", |
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.
This is no longer used, could you switch it to use debug
instead?
Changes Unknown when pulling 9187cfa on nunofmn:16-upgrade-libp2p-modules into ** on libp2p:master**. |
1 similar comment
Changes Unknown when pulling 9187cfa on nunofmn:16-upgrade-libp2p-modules into ** on libp2p:master**. |
Related to #16