fix: mint and burn func signatures, adjustable batch size for pool and backfill buffer

This commit is contained in:
2024-09-05 14:24:32 +03:00
parent 591518bbb5
commit 22ffc224ca
7 changed files with 32 additions and 29 deletions

View File

@@ -108,6 +108,7 @@ func main() {
poolOpts := pool.PoolOpts{
Logg: lo,
WorkerCount: ko.Int("core.pool_size"),
BatchSize: ko.MustInt("core.batch_size"),
Processor: blockProcessor,
}
if ko.Int("core.pool_size") <= 0 {
@@ -136,9 +137,10 @@ func main() {
}
backfill := backfill.New(backfill.BackfillOpts{
DB: db,
Logg: lo,
Pool: workerPool,
BatchSize: ko.MustInt("core.batch_size"),
DB: db,
Logg: lo,
Pool: workerPool,
})
apiServer := &http.Server{