]> Sergey Matveev's repositories - btrtrc.git/blobdiff - metainfo/piece_key.go
Fix incorrect EOF when decoding some peer protocol message types
[btrtrc.git] / metainfo / piece_key.go
index b5aa492e500769ea6957701ea529a4ee35df114e..6ddf065c413b3ef58c28fe051e6b8c587e303fd8 100644 (file)
@@ -1,6 +1,7 @@
 package metainfo
 
+// Uniquely identifies a piece.
 type PieceKey struct {
        InfoHash Hash
-       Index    int
+       Index    pieceIndex
 }