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

Commit c4cf441

Browse files
committed
refactor: return peer ids as strings
Depends on: - [ ] ipfs-inactive/interface-js-ipfs-core#581
1 parent e9aaa75 commit c4cf441

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"async": "^3.1.0",
6969
"browser-process-platform": "~0.1.1",
7070
"go-ipfs-dep": "^0.4.22",
71-
"interface-ipfs-core": "^0.129.0",
71+
"interface-ipfs-core": "ipfs/interface-js-ipfs-core#return-peer-ids-as-strings",
7272
"ipfsd-ctl": "^1.0.2",
7373
"it-all": "^1.0.1",
7474
"it-concat": "^1.0.0",

src/swarm/peers.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict'
22

33
const multiaddr = require('multiaddr')
4-
const CID = require('cids')
54
const configure = require('../lib/configure')
65

76
module.exports = configure(({ ky }) => {
@@ -25,7 +24,7 @@ module.exports = configure(({ ky }) => {
2524
const info = {}
2625
try {
2726
info.addr = multiaddr(peer.Addr)
28-
info.peer = new CID(peer.Peer)
27+
info.peer = peer.Peer
2928
} catch (error) {
3029
info.error = error
3130
info.rawPeerInfo = peer

0 commit comments

Comments
 (0)