satellite/peyments: fix potential infinite loop in update account balance cycle

Change-Id: Ia4f9abe50b771ff6406e3a1ae76166e046bf63e5
This commit is contained in:
Yaroslav Vorobiov 2020-02-13 18:34:42 +02:00 committed by jens
parent 4e86951163
commit 6c6e2eb8b3

View File

@ -252,7 +252,7 @@ func (service *Service) updateAccountBalanceLoop(ctx context.Context) (err error
return err
}
txsPage, err := service.db.Transactions().ListUnapplied(ctx, txsPage.NextOffset, limit, before)
txsPage, err = service.db.Transactions().ListUnapplied(ctx, txsPage.NextOffset, limit, before)
if err != nil {
return err
}