MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / NewLineageOutboxProcessor

Function NewLineageOutboxProcessor

lineage_worker.go:50–58  ·  view source on GitHub ↗

NewLineageOutboxProcessor creates a new outbox processor. Parameters: - ledgerforge *LedgerForge: The LedgerForge instance containing the datasource and processing logic. Returns: - *LineageOutboxProcessor: The configured processor.

(ledgerforge *LedgerForge)

Source from the content-addressed store, hash-verified

48// Returns:
49// - *LineageOutboxProcessor: The configured processor.
50func NewLineageOutboxProcessor(ledgerforge *LedgerForge) *LineageOutboxProcessor {
51 return &LineageOutboxProcessor{
52 ledgerforge: ledgerforge,
53 batchSize: 100,
54 pollInterval: 1 * time.Second,
55 lockDuration: 30 * time.Second,
56 stopCh: make(chan struct{}),
57 }
58}
59
60// WithBatchSize sets the batch size for processing outbox entries.
61//

Callers 8

serverCommandsFunction · 0.92
TestLineageFullFlowFunction · 0.85
TestLineageInflightHoldFunction · 0.85
TestLineageInflightVoidFunction · 0.85

Calls

no outgoing calls

Tested by 7

TestLineageFullFlowFunction · 0.68
TestLineageInflightHoldFunction · 0.68
TestLineageInflightVoidFunction · 0.68