storage/bolt.go | 2 +- storage/sqlite/direct.go | 2 +- diff --git a/storage/bolt.go b/storage/bolt.go index 4473b8415f79a6c92376b97a82c1c603f5266464..72644c43527e05bdf8681601ab9559a8be6728fe 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 4fda7d0cbef6f21bc52d82a61d09571a223aa981..3d51fd316b27385948feab321fc9015d48038c8d 100644 --- a/storage/sqlite/direct.go +++ b/storage/sqlite/direct.go @@ -38,7 +38,7 @@ *squirrel.Cache 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 }