Skip to content

Peer discovery#48

Merged
mnaamani merged 5 commits intoJoystreamClassic:developmentfrom
rllola:peer-discovery
May 29, 2017
Merged

Peer discovery#48
mnaamani merged 5 commits intoJoystreamClassic:developmentfrom
rllola:peer-discovery

Conversation

@rllola
Copy link
Copy Markdown
Contributor

@rllola rllola commented May 26, 2017

@rllola rllola requested review from bedeho and mnaamani May 26, 2017 12:29
Comment thread lib/Torrent.js Outdated

for (var i in peers) {
this.addJSPeerAtTimestamp(peers[i].address, timestamp)
this.handle.connectPeer(peers[i])
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps emitting an event here and letting the application decide to connect to peers instead would be better.
So the Torrent class can provide a connectToPeer method for this purpose.

@mnaamani mnaamani merged commit 25a05c2 into JoystreamClassic:development May 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants