Skip to content

Commit 0b4b6a2

Browse files
committed
downloader: comprehensive snapshot set, per-snapshot progress output
Snapshot discovery now takes the union of: - All names in preverified.toml - All files on disk with ".torrent" stripped - All files on disk with ".part" stripped This lets the verifier detect missing .torrent files, infohash mismatches between preverified.toml and .torrent, .part-vs-full disagreements, and data files that are absent entirely. After each snapshot finishes verification, a {"type":"progress",...} line is written to stdout with the snapshot name, overall % complete, and the preverified status ("matches" | "doesn't match" | "not in preverified" | "no preverified.toml"). Issue and summary lines retain their own types.
1 parent 95cecf8 commit 0b4b6a2

2 files changed

Lines changed: 253 additions & 205 deletions

File tree

cmd/utils/app/snapshots_cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ var snapshotCommand = cli.Command{
557557
return fmt.Errorf("verify snapshot downloads: %w", err)
558558
}
559559
log.Root().Info("[snapshots verify] done",
560-
"torrents", summary.Torrents,
560+
"snapshots", summary.Total,
561561
"errors", summary.Errors,
562562
"warnings", summary.Warnings,
563563
)

0 commit comments

Comments
 (0)