1
0
mirror of https://github.com/veggiedefender/torrent-client.git synced 2025-11-06 09:29:16 +02:00

Reorder algorithm steps

This commit is contained in:
Jesse
2019-12-29 19:26:57 -05:00
parent 0a5176e4ee
commit 97f2be0747
2 changed files with 11 additions and 12 deletions

View File

@@ -45,7 +45,6 @@ func (t *TorrentFile) Download() ([]byte, error) {
}
peers, err := t.getPeers(peerID, Port)
// peers = append(peers, p2p.Peer{IP: net.IP{127, 0, 0, 1}, Port: 51413})
// peers := []p2p.Peer{{IP: net.IP{127, 0, 0, 1}, Port: 51413}}
torrent := p2p.Torrent{
Peers: peers,