Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions internal/audit/audit.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

// Verification tuning constants.
const (

Check failure on line 3 in internal/audit/audit.go

View workflow job for this annotation

GitHub Actions / test

expected 'package', found 'const'
// DefaultVerifyBatchSize is the number of events to load per batch
// during chain verification. Larger batches use more memory but
// reduce round trips to the store.
DefaultVerifyBatchSize = 1000

// MaxVerifyBatchSize caps the batch size to prevent OOM on large
// event stores.
MaxVerifyBatchSize = 10000

// VerifyProgressInterval is the number of events between progress
// log messages during long verification runs.
VerifyProgressInterval = 50000
)
Loading