Remove some unused parameter names
https://deepsource.io/gh/anacrolix/torrent/run/cfd6fa3d-c65b-4bf7-83f7-3bee87c21a4b/go/RVV-B0012
This commit is contained in:
parent
1788303405
commit
b088c08acd
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue