satellite/satellitedb: gracefulexit, add missing Errs check
Change-Id: Iba4ba84fd57b3a0a0d15f13006566076045d6c11
This commit is contained in:
parent
7bc76624cf
commit
c207cd08fc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user