2
0
mirror of synced 2025-02-24 06:38:14 +00:00
Matt Joiner 2b443d695b Change torrent capacity to not return a pointer
It's an unnecessary complication for a storage implementer.
2021-09-15 23:33:17 +10:00

16 lines
314 B
Go

package request_strategy
import (
"github.com/anacrolix/torrent/storage"
)
type Torrent struct {
Pieces []Piece
Capacity storage.TorrentCapacity
Peers []Peer // not closed.
// Some value that's unique and stable between runs. Could even use the infohash?
StableId uintptr
MaxUnverifiedBytes int64
}