]> Sergey Matveev's repositories - btrtrc.git/blobdiff - piecestate.go
Include holepunch message protocol family in metrics
[btrtrc.git] / piecestate.go
index 6007e338b6c41b01a58ab8cb770a6dff596c62ac..089adca44051d1602a2be57eb4d949cc6ea6880b 100644 (file)
@@ -7,10 +7,15 @@ import (
 // The current state of a piece.
 type PieceState struct {
        Priority piecePriority
-       // The piece is available in its entirety.
        storage.Completion
-       // The piece is being hashed, or is queued for hash.
+       // The piece is being hashed, or is queued for hash. Deprecated: Use those fields instead.
        Checking bool
+
+       Hashing       bool
+       QueuedForHash bool
+       // The piece state is being marked in the storage.
+       Marking bool
+
        // Some of the piece has been obtained.
        Partial bool
 }