Compare commits

..

No commits in common. "66d684e473f718faaf9da0c95b5d4aa1d47c341f" and "033330fd0423027b4de9b8bf903ca7031527bc5a" have entirely different histories.

View File

@ -23,7 +23,7 @@ class Client extends EventEmitter {
console.log(`Peers count: ${this.swarm.connections.size} (${this.swarm.peers.size})`);
this.swarm.peers.forEach((peer, peerInfo) => {
console.log(`Peer ${peer} is in topic(s) ${[peerInfo.topics].filter(topic => topic).map(topic => topic.toString('hex'))}`);
console.log(`Peer ${peer} is in topic(s) ${[...peerInfo.topics].map(topic => topic.toString('hex'))}`);
});
});
}