]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Add comment explaining Torrent.requestStrategy
authorMatt Joiner <anacrolix@gmail.com>
Fri, 12 Jan 2018 01:24:51 +0000 (12:24 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 12 Jan 2018 01:24:51 +0000 (12:24 +1100)
torrent.go

index 32f66b4e7c53ea667694d260a18cbbbd30e9a5ae..113d666c469b891219f4791f1d3b6d835a42aece 100644 (file)
@@ -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