2
0
mirror of synced 2025-02-24 06:38:14 +00:00

cmd/torrent-verify now needs to call InitIndex

This commit is contained in:
Matt Joiner 2020-06-01 00:04:15 +10:00
parent 563a09cc47
commit 3cbdf4aa98

View File

@ -46,6 +46,7 @@ func verifyTorrent(info *metainfo.Info, root string) error {
}
span.Append(mm)
}
span.InitIndex()
for i := range iter.N(info.NumPieces()) {
p := info.Piece(i)
hash := sha1.New()