diff --git a/cmd/downloader/main.go b/cmd/downloader/main.go index fa9c7a6ba9fd4b0981b0f2508b062f25300496ce..8c25e3ab070a5fc8dbc231b41942cebd4f0a1d96 100644 --- a/cmd/downloader/main.go +++ b/cmd/downloader/main.go @@ -172,7 +172,7 @@ var printTorrentHashes = &cobra.Command{ } if forceRebuild { // remove and create .torrent files (will re-read all snapshots) - removePieceCompletionStorage(snapshotDir) + //removePieceCompletionStorage(snapshotDir) files, err := downloader.AllTorrentPaths(snapshotDir) if err != nil { return err @@ -232,6 +232,7 @@ var printTorrentHashes = &cobra.Command{ }, } +//nolint func removePieceCompletionStorage(snapshotDir string) { _ = os.RemoveAll(filepath.Join(snapshotDir, "db")) _ = os.RemoveAll(filepath.Join(snapshotDir, ".torrent.db"))