]> Sergey Matveev's repositories - btrtrc.git/blobdiff - piecestate.go
Include completion known in PieceState
[btrtrc.git] / piecestate.go
index 358ffcf2d015a57b3dfc5cfe364a08a6b63e7560..6007e338b6c41b01a58ab8cb770a6dff596c62ac 100644 (file)
@@ -1,10 +1,14 @@
 package torrent
 
+import (
+       "github.com/anacrolix/torrent/storage"
+)
+
 // The current state of a piece.
 type PieceState struct {
        Priority piecePriority
        // The piece is available in its entirety.
-       Complete bool
+       storage.Completion
        // The piece is being hashed, or is queued for hash.
        Checking bool
        // Some of the piece has been obtained.