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

@@ -11,6 +11,7 @@ import (
type (
PoolOpts struct {
BatchSize int
Logg *slog.Logger
WorkerCount int
Processor *processor.Processor
@@ -23,14 +24,12 @@ type (
}
)
const blocksBuffer = 100
func New(o PoolOpts) *Pool {
return &Pool{
logg: o.Logg,
workerPool: pond.New(
o.WorkerCount,
blocksBuffer,
o.BatchSize,
pond.Strategy(pond.Balanced()),
pond.PanicHandler(panicHandler(o.Logg)),
),