Remove unused pieceRequestOrder in Client
This commit is contained in:
parent
52e6979457
commit
2d2456249a
|
@ -81,8 +81,6 @@ type Client struct {
|
|||
websocketTrackers websocketTrackers
|
||||
|
||||
activeAnnounceLimiter limiter.Instance
|
||||
|
||||
clientPieceRequestOrder
|
||||
}
|
||||
|
||||
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.
|
||||
func (t *Torrent) onSetInfo() {
|
||||
t.cl.clientPieceRequestOrder.addPieces(t, t.numPieces())
|
||||
t.iterPeers(func(p *Peer) {
|
||||
p.onGotInfo(t.info)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue