diff --git a/client.go b/client.go index f1164e5b..9cbf4aa7 100644 --- a/client.go +++ b/client.go @@ -1428,26 +1428,10 @@ func (cl *Client) setMetaData(t *torrent, md metainfo.Info, bytes []byte) (err e } 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 { log.Printf("error saving torrent file for %s: %s", t, err) } close(t.gotMetainfo) - // t.gotMetainfo = nil return }