Remove commented out code
This commit is contained in:
parent
7228e40c95
commit
9fac3e8f33
16
client.go
16
client.go
|
@ -1428,26 +1428,10 @@ func (cl *Client) setMetaData(t *torrent, md metainfo.Info, bytes []byte) (err e
|
||||||
}
|
}
|
||||||
|
|
||||||
cl.downloadStrategy.TorrentStarted(t)
|
cl.downloadStrategy.TorrentStarted(t)
|
||||||
// TODO(anacrolix): I think this should be made available as a method, the
|
|
||||||
// channel only acts as a signal that the metadata has become available.
|
|
||||||
// select {
|
|
||||||
// case t.gotMetainfo <- &metainfo.MetaInfo{
|
|
||||||
// Info: metainfo.InfoEx{
|
|
||||||
// Info: md,
|
|
||||||
// },
|
|
||||||
// CreationDate: time.Now().Unix(),
|
|
||||||
// Comment: "metadata set in client",
|
|
||||||
// CreatedBy: "go.torrent",
|
|
||||||
// // TODO(anacrolix): Expose trackers given when torrent added.
|
|
||||||
// }:
|
|
||||||
// default:
|
|
||||||
// panic("shouldn't block")
|
|
||||||
// }
|
|
||||||
if err := cl.saveTorrentFile(t); err != nil {
|
if err := cl.saveTorrentFile(t); err != nil {
|
||||||
log.Printf("error saving torrent file for %s: %s", t, err)
|
log.Printf("error saving torrent file for %s: %s", t, err)
|
||||||
}
|
}
|
||||||
close(t.gotMetainfo)
|
close(t.gotMetainfo)
|
||||||
// t.gotMetainfo = nil
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue