satellite/satellitedb: gracefulexit, add missing Errs check

Change-Id: Iba4ba84fd57b3a0a0d15f13006566076045d6c11
This commit is contained in:
Egon Elbre 2020-01-19 16:59:49 +02:00 committed by Stefan Benten
parent 7bc76624cf
commit c207cd08fc

View File

@ -250,11 +250,7 @@ func (db *gracefulexitDB) IncrementOrderLimitSendCount(ctx context.Context, node
AND piece_num = ?`,
)
_, err = db.db.ExecContext(ctx, sql, nodeID, path, pieceNum)
if err != nil {
return Error.Wrap(err)
}
return nil
return Error.Wrap(err)
}
func scanRows(rows *sql.Rows) (transferQueueItemRows []*gracefulexit.TransferQueueItem, err error) {
@ -276,7 +272,7 @@ func scanRows(rows *sql.Rows) (transferQueueItemRows []*gracefulexit.TransferQue
transferQueueItemRows = append(transferQueueItemRows, transferQueueItem)
}
return transferQueueItemRows, nil
return transferQueueItemRows, Error.Wrap(rows.Err())
}
func dbxToTransferQueueItem(dbxTransferQueue *dbx.GracefulExitTransferQueue) (item *gracefulexit.TransferQueueItem, err error) {