diff --git a/p2p/p2p.go b/p2p/p2p.go index 8e1b3c6..52c356e 100644 --- a/p2p/p2p.go +++ b/p2p/p2p.go @@ -188,7 +188,7 @@ func calculateBoundsForPiece(index, numPieces, length int) (begin int, end int) return begin, end } -// Download downloads the torrent +// Download downloads the torrent. This stores the entire file in memory. func (t *Torrent) Download() ([]byte, error) { log.Println("Starting download for", t.Name) // Init queues for workers to retrieve work and send results