Crashing on chunk retrieval fail.

This commit is contained in:
Alexey Skobkin 2019-10-19 04:17:01 +03:00
parent 3e601ea2cb
commit 3f0c3f61c5
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7

View file

@ -73,6 +73,8 @@ func mergeDatabases(pyDb *sql.DB, goDb persistence.Database) error {
chunk, err := old.GetTorrentsChunk(pyDb, lastId, *chunkSize)
if err != nil {
zap.L().Error("Error while getting torrents chunk", zap.Uint64("last-id", lastId))
return err
}
if len(chunk) == 0 {