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

Panic on bad piece per resource chunk names

This was masking a bug in a coming sqlite storage implementation. Maybe it could be relaxed to checking for no filepath.Dir in the future.
This commit is contained in:
Matt Joiner 2020-10-11 12:57:33 +11:00
parent 417d7d1d48
commit 00ac333ea2

View File

@ -123,7 +123,7 @@ func (s piecePerResourcePiece) getChunks() (chunks chunks) {
for _, n := range names {
offset, err := strconv.ParseInt(n, 10, 64)
if err != nil {
continue
panic(err)
}
i, err := s.rp.NewInstance(path.Join(s.incompleteDirPath(), n))
if err != nil {