]> Sergey Matveev's repositories - btrtrc.git/blob - request-strategy/torrent.go
Optimize chunk calculations in request strategy
[btrtrc.git] / request-strategy / torrent.go
1 package request_strategy
2
3 import (
4         "github.com/anacrolix/torrent/metainfo"
5         "github.com/anacrolix/torrent/storage"
6 )
7
8 type Torrent struct {
9         Pieces   []Piece
10         Capacity storage.TorrentCapacity
11         // Unclosed Peers. Not necessary for getting requestable piece ordering.
12         Peers []Peer
13         // Some value that's unique and stable between runs. Could even use the infohash?
14         InfoHash       metainfo.Hash
15         ChunksPerPiece uint32
16
17         MaxUnverifiedBytes int64
18 }