From: Matt Joiner Date: Fri, 12 Jan 2018 01:24:51 +0000 (+1100) Subject: Add comment explaining Torrent.requestStrategy X-Git-Tag: v1.0.0~277 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=696595a76ea0a4796a74a89d79ceb91f1b17b642;p=btrtrc.git Add comment explaining Torrent.requestStrategy --- diff --git a/torrent.go b/torrent.go index 32f66b4e..113d666c 100644 --- a/torrent.go +++ b/torrent.go @@ -47,7 +47,11 @@ type Torrent struct { cl *Client networkingEnabled bool - requestStrategy int + // Determines what chunks to request from peers. 1: Favour higher priority + // pieces with some fuzzing to reduce overlaps and wastage across + // connections. 2: The fastest connection downloads strictly in order of + // priority, while all others adher to their piece inclications. + requestStrategy int closed missinggo.Event infoHash metainfo.Hash