anacrolix / anacrolix/torrent

Clean up torrent creation methods on Client

未關閉
#369 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Go
星號
6.1k
分支
690
平均合併
3 天 10 小時
30 天內合併 PR
12

描述

Per https://github.com/anacrolix/torrent/issues/243#issue-310328823:

> remove torrent creation methods from the client. there are just want too many of them. poorly documented, and its unclear which one should be used and when.
> ```
> func (cl *Client) AddMagnet(uri string) (T *Torrent, err error) {}
> func (cl *Client) AddTorrentFromFile(filename string) (T *Torrent, err error) {}
> func (cl *Client) AddTorrent(mi *metainfo.MetaInfo) (T *Torrent, err error) {}
> func (cl *Client) AddTorrentInfoHash(infoHash metainfo.Hash) (t *Torrent, new bool) {}
> func (cl *Client) AddTorrentInfoHashWithStorage(infoHash metainfo.Hash, specStorage storage.ClientImpl) (t *Torrent, new bool) {}
> func (cl *Client) AddTorrentSpec(spec *TorrentSpec) (t *Torrent, new bool, err error) {}
> ```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。