Matt Joiner 2021-11-01 11:53:58 +11:00
parent 1788303405
commit b088c08acd
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ func (me *boltClient) Close() error {
return me.db.Close()
}
func (me *boltClient) OpenTorrent(info *metainfo.Info, infoHash metainfo.Hash) (TorrentImpl, error) {
func (me *boltClient) OpenTorrent(_ *metainfo.Info, infoHash metainfo.Hash) (TorrentImpl, error) {
t := &boltTorrent{me, infoHash}
return TorrentImpl{
Piece: t.Piece,

View File

@ -38,7 +38,7 @@ type client struct {
capacity func() (int64, bool)
}
func (c *client) OpenTorrent(info *metainfo.Info, infoHash metainfo.Hash) (storage.TorrentImpl, error) {
func (c *client) OpenTorrent(*metainfo.Info, metainfo.Hash) (storage.TorrentImpl, error) {
t := torrent{c.Cache}
return storage.TorrentImpl{Piece: t.Piece, Close: t.Close, Capacity: &c.capacity}, nil
}