satellite/satellitedb: fix err and close order

Change-Id: Ied927275853c4cf4a8ccb500048d50545f6c6efe
This commit is contained in:
Egon Elbre 2020-03-04 09:39:37 +02:00
parent bcb0453db2
commit 5f2ca0338b

View File

@ -256,7 +256,7 @@ func (db *ordersDB) ProcessOrders(ctx context.Context, requests []*orders.Proces
if err != nil {
return nil, Error.Wrap(err)
}
defer func() { err = errs.Combine(err, rows.Close(), rows.Err()) }()
defer func() { err = errs.Combine(err, rows.Err(), rows.Close()) }()
for rows.Next() {
var index int
var bucketID []byte