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

Commit

Permalink
changes peer prop in return value from swarm.peers to be a PeerId ins…
Browse files Browse the repository at this point in the history
…tead of a PeerInfo
  • Loading branch information
alanshaw committed Mar 7, 2018
1 parent 5b40b41 commit 01dbac6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/components/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = function swarm (self) {

const tupple = {
addr: connectedAddr,
peer: peer
peer: peer.id
}
if (verbose) {
tupple.latency = 'unknown'
Expand Down
2 changes: 1 addition & 1 deletion src/http/api/resources/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ exports.peers = {
return reply({
Peers: peers.map((p) => {
const res = {
Peer: p.peer.id.toB58String(),
Peer: p.peer.toB58String(),
Addr: p.addr.toString()
}

Expand Down

0 comments on commit 01dbac6

Please sign in to comment.