From b088c08acd1f0374b68060c6ce4fe4aa0d3935f7 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 1 Nov 2021 11:53:58 +1100 Subject: [PATCH] Remove some unused parameter names https://deepsource.io/gh/anacrolix/torrent/run/cfd6fa3d-c65b-4bf7-83f7-3bee87c21a4b/go/RVV-B0012 --- storage/bolt.go | 2 +- storage/sqlite/direct.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/bolt.go b/storage/bolt.go index 4473b841..72644c43 100644 --- a/storage/bolt.go +++ b/storage/bolt.go @@ -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, diff --git a/storage/sqlite/direct.go b/storage/sqlite/direct.go index 4fda7d0c..3d51fd31 100644 --- a/storage/sqlite/direct.go +++ b/storage/sqlite/direct.go @@ -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 } -- 2.44.0