add comment for DownloadAll
This commit is contained in:
parent
1fb2348a0e
commit
f7e8a6ad2d
1
t.go
1
t.go
|
@ -239,6 +239,7 @@ func (t *Torrent) AddPeers(pp []PeerInfo) (n int) {
|
|||
|
||||
// Marks the entire torrent for download. Requires the info first, see
|
||||
// GotInfo. Sets piece priorities for historical reasons.
|
||||
// Announce which pieces should be downloaded
|
||||
func (t *Torrent) DownloadAll() {
|
||||
t.DownloadPieces(0, t.numPieces())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue