Add comment explaining Torrent.requestStrategy

This commit is contained in:
Matt Joiner 2018-01-12 12:24:51 +11:00
parent ed7e3f6ec0
commit 696595a76e
1 changed files with 5 additions and 1 deletions

View File

@ -47,6 +47,10 @@ type Torrent struct {
cl *Client cl *Client
networkingEnabled bool networkingEnabled bool
// 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 requestStrategy int
closed missinggo.Event closed missinggo.Event