]> Sergey Matveev's repositories - btrtrc.git/blobdiff - request-strategy/torrent.go
Optimize chunk calculations in request strategy
[btrtrc.git] / request-strategy / torrent.go
index 262ae9656682cc9f04bc14aa3c1dd0666aeddf37..ff0261a3eb6944a3c99f6fee98f74cb23a54fee0 100644 (file)
@@ -12,7 +12,7 @@ type Torrent struct {
        Peers []Peer
        // Some value that's unique and stable between runs. Could even use the infohash?
        InfoHash       metainfo.Hash
-       ChunksPerPiece int
+       ChunksPerPiece uint32
 
        MaxUnverifiedBytes int64
 }