]> Sergey Matveev's repositories - btrtrc.git/blobdiff - piece.go
Reintroduce connection piece inclinations, and begin caching piece priorities
[btrtrc.git] / piece.go
index 0643878c2e73fe29f50eee208133337208b8776c..843ddb9e797f12e4643679469d96701697c73f89 100644 (file)
--- a/piece.go
+++ b/piece.go
@@ -31,6 +31,7 @@ type piece struct {
        QueuedForHash    bool
        EverHashed       bool
        PublicPieceState PieceState
+       priority         piecePriority
 
        pendingWritesMutex sync.Mutex
        pendingWrites      int