Fixing bug which caused processing only one file per torrent.
This commit is contained in:
parent
b4ab04cf5d
commit
5206d77fe7
|
@ -126,7 +126,6 @@ func getFilesForTorrent(pyDb sql.DB, torrent persistence.TorrentMetadata) ([]per
|
||||||
for fRows.Next() {
|
for fRows.Next() {
|
||||||
var file persistence.File
|
var file persistence.File
|
||||||
err := fRows.Scan(&file.Path, &file.Size)
|
err := fRows.Scan(&file.Path, &file.Size)
|
||||||
fRows.Close()
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return files, err
|
return files, err
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue