From f7e8a6ad2d62fb7c60391889bdcea15df2a394be Mon Sep 17 00:00:00 2001 From: whr819987540 <819987540@qq.com> Date: Tue, 25 Apr 2023 19:35:26 +0800 Subject: [PATCH] add comment for DownloadAll --- t.go | 1 + 1 file changed, 1 insertion(+) diff --git a/t.go b/t.go index 765f3cf2..860fe2ea 100644 --- a/t.go +++ b/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()) }