satellite/satellitedb: fix err and close order
Change-Id: Ied927275853c4cf4a8ccb500048d50545f6c6efe
This commit is contained in:
parent
bcb0453db2
commit
5f2ca0338b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user