]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Remove some unused parameter names
authorMatt Joiner <anacrolix@gmail.com>
Mon, 1 Nov 2021 00:53:58 +0000 (11:53 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 1 Nov 2021 00:53:58 +0000 (11:53 +1100)
https://deepsource.io/gh/anacrolix/torrent/run/cfd6fa3d-c65b-4bf7-83f7-3bee87c21a4b/go/RVV-B0012

storage/bolt.go
storage/sqlite/direct.go

index 4473b8415f79a6c92376b97a82c1c603f5266464..72644c43527e05bdf8681601ab9559a8be6728fe 100644 (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,
index 4fda7d0cbef6f21bc52d82a61d09571a223aa981..3d51fd316b27385948feab321fc9015d48038c8d 100644 (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
 }