Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: peer should hold PeerId and not PeerInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Mar 15, 2018
1 parent 8bddf25 commit 09b02e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/components/swarm.js
Expand Up @@ -3,6 +3,7 @@
const multiaddr = require('multiaddr')
const promisify = require('promisify-es6')
const values = require('lodash.values')
const PeerId = require('peer-id')

const OFFLINE_ERROR = require('../utils').OFFLINE_ERROR

Expand Down Expand Up @@ -31,7 +32,7 @@ module.exports = function swarm (self) {

const tupple = {
addr: connectedAddr,
peer: peer
peer: peer.id
}
if (verbose) {
tupple.latency = 'unknown'
Expand Down

0 comments on commit 09b02e2

Please sign in to comment.