add comment for DownloadAll

This commit is contained in:
whr819987540 2023-04-25 19:35:26 +08:00
parent 1fb2348a0e
commit f7e8a6ad2d
1 changed files with 1 additions and 0 deletions

1
t.go
View File

@ -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())
}