Remove unused pieceRequestOrder in Client
This commit is contained in:
parent
52e6979457
commit
2d2456249a
|
@ -81,8 +81,6 @@ type Client struct {
|
||||||
websocketTrackers websocketTrackers
|
websocketTrackers websocketTrackers
|
||||||
|
|
||||||
activeAnnounceLimiter limiter.Instance
|
activeAnnounceLimiter limiter.Instance
|
||||||
|
|
||||||
clientPieceRequestOrder
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ipStr string
|
type ipStr string
|
||||||
|
|
|
@ -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)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue