]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Comment on PiecePriorityNext
authorMatt Joiner <anacrolix@gmail.com>
Tue, 30 Aug 2016 06:55:50 +0000 (16:55 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 30 Aug 2016 06:55:50 +0000 (16:55 +1000)
piece.go

index 1d0e63178bbf44946f83e4d843f7718fc8023c9c..ec24b7db120fee5574fa276dad7c9903677099ae 100644 (file)
--- a/piece.go
+++ b/piece.go
@@ -24,8 +24,9 @@ const (
        PiecePriorityNone      piecePriority = iota // Not wanted.
        PiecePriorityNormal                         // Wanted.
        PiecePriorityReadahead                      // May be required soon.
-       PiecePriorityNext                           // Succeeds a piece where a read occurred.
-       PiecePriorityNow                            // A Reader is reading in this piece.
+       // Succeeds a piece where a read occurred. Currently the same as Now, apparently due to issues with caching.
+       PiecePriorityNext
+       PiecePriorityNow // A Reader is reading in this piece.
 )
 
 type piece struct {