]> Sergey Matveev's repositories - btrtrc.git/blobdiff - request-strategy/torrent.go
Drop support for go 1.20
[btrtrc.git] / request-strategy / torrent.go
index 262ae9656682cc9f04bc14aa3c1dd0666aeddf37..5bc438ee558b59b037c7c31afb746973585dc9b0 100644 (file)
@@ -1,18 +1,6 @@
-package request_strategy
+package requestStrategy
 
-import (
-       "github.com/anacrolix/torrent/metainfo"
-       "github.com/anacrolix/torrent/storage"
-)
-
-type Torrent struct {
-       Pieces   []Piece
-       Capacity storage.TorrentCapacity
-       // Unclosed Peers. Not necessary for getting requestable piece ordering.
-       Peers []Peer
-       // Some value that's unique and stable between runs. Could even use the infohash?
-       InfoHash       metainfo.Hash
-       ChunksPerPiece int
-
-       MaxUnverifiedBytes int64
+type Torrent interface {
+       IgnorePiece(int) bool
+       PieceLength() int64
 }