From d37447727ac77e5ed258d8e16682bde3e6870b0b Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Mon, 30 May 2022 17:36:02 +0700 Subject: [PATCH] torrent: reduce deps of cfg #4305 --- cmd/downloader/downloader/downloader.go | 2 +- .../downloader/{torrentcfg => }/mdbx_piece_completion.go | 2 +- .../downloader/{torrentcfg => }/mdbx_piece_completion_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename cmd/downloader/downloader/{torrentcfg => }/mdbx_piece_completion.go (98%) rename cmd/downloader/downloader/{torrentcfg => }/mdbx_piece_completion_test.go (97%) diff --git a/cmd/downloader/downloader/downloader.go b/cmd/downloader/downloader/downloader.go index 0d6a6417d..a37344b8f 100644 --- a/cmd/downloader/downloader/downloader.go +++ b/cmd/downloader/downloader/downloader.go @@ -233,7 +233,7 @@ func openClient(cfg *torrent.ClientConfig) (db kv.RwDB, c storage.PieceCompletio if err != nil { return nil, nil, nil, nil, err } - c, err = torrentcfg.NewMdbxPieceCompletion(db) + c, err = NewMdbxPieceCompletion(db) if err != nil { return nil, nil, nil, nil, fmt.Errorf("torrentcfg.NewMdbxPieceCompletion: %w", err) } diff --git a/cmd/downloader/downloader/torrentcfg/mdbx_piece_completion.go b/cmd/downloader/downloader/mdbx_piece_completion.go similarity index 98% rename from cmd/downloader/downloader/torrentcfg/mdbx_piece_completion.go rename to cmd/downloader/downloader/mdbx_piece_completion.go index 8af9f11c9..1bcbd349c 100644 --- a/cmd/downloader/downloader/torrentcfg/mdbx_piece_completion.go +++ b/cmd/downloader/downloader/mdbx_piece_completion.go @@ -1,4 +1,4 @@ -package torrentcfg +package downloader import ( "context" diff --git a/cmd/downloader/downloader/torrentcfg/mdbx_piece_completion_test.go b/cmd/downloader/downloader/mdbx_piece_completion_test.go similarity index 97% rename from cmd/downloader/downloader/torrentcfg/mdbx_piece_completion_test.go rename to cmd/downloader/downloader/mdbx_piece_completion_test.go index d66bc4d29..15303b952 100644 --- a/cmd/downloader/downloader/torrentcfg/mdbx_piece_completion_test.go +++ b/cmd/downloader/downloader/mdbx_piece_completion_test.go @@ -1,4 +1,4 @@ -package torrentcfg +package downloader import ( "testing"