satellite/payments: increase batch size for transactions and account balance loops

Change-Id: I44712d26abde6c405ced35f103d1581423092737
This commit is contained in:
Yaroslav Vorobiov 2020-02-13 18:36:32 +02:00 committed by jens
parent 6c6e2eb8b3
commit da58dc4a7a

View File

@ -138,7 +138,7 @@ func (service *Service) Accounts() payments.Accounts {
func (service *Service) updateTransactionsLoop(ctx context.Context) (err error) {
defer mon.Task()(&ctx)(&err)
const limit = 25
const limit = 100
before := time.Now()
txsPage, err := service.db.Transactions().ListPending(ctx, 0, limit, before)
@ -229,7 +229,7 @@ func (service *Service) updateTransactions(ctx context.Context, ids TransactionA
func (service *Service) updateAccountBalanceLoop(ctx context.Context) (err error) {
defer mon.Task()(&ctx)(&err)
const limit = 25
const limit = 100
before := time.Now()
txsPage, err := service.db.Transactions().ListUnapplied(ctx, 0, limit, before)