Remove unused pieceRequestOrder in Client

This commit is contained in:
Matt Joiner 2021-05-10 13:35:24 +10:00
parent 52e6979457
commit 2d2456249a
2 changed files with 0 additions and 3 deletions

View File

@ -81,8 +81,6 @@ type Client struct {
websocketTrackers websocketTrackers websocketTrackers websocketTrackers
activeAnnounceLimiter limiter.Instance activeAnnounceLimiter limiter.Instance
clientPieceRequestOrder
} }
type ipStr string type ipStr string

View File

@ -412,7 +412,6 @@ func (t *Torrent) setInfo(info *metainfo.Info) error {
// This seems to be all the follow-up tasks after info is set, that can't fail. // This seems to be all the follow-up tasks after info is set, that can't fail.
func (t *Torrent) onSetInfo() { func (t *Torrent) onSetInfo() {
t.cl.clientPieceRequestOrder.addPieces(t, t.numPieces())
t.iterPeers(func(p *Peer) { t.iterPeers(func(p *Peer) {
p.onGotInfo(t.info) p.onGotInfo(t.info)
}) })