Remove commented out code

This commit is contained in:
Matt Joiner 2014-12-02 18:23:07 -06:00
parent 7228e40c95
commit 9fac3e8f33
1 changed files with 0 additions and 16 deletions

View File

@ -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
} }