From 696595a76ea0a4796a74a89d79ceb91f1b17b642 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 12 Jan 2018 12:24:51 +1100 Subject: [PATCH] Add comment explaining Torrent.requestStrategy --- torrent.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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