Skip to content

Commit 12cbedf

Browse files
committed
refactor: rename BatchAction to batchAction
1 parent d02ff04 commit 12cbedf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

block/submitter.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -586,19 +586,19 @@ func submitHalfBatch[T any](
586586
return 0, nil
587587
}
588588

589-
// BatchAction represents the action to take after processing a batch
590-
type BatchAction int
589+
// batchAction represents the action to take after processing a batch
590+
type batchAction int
591591

592592
const (
593-
batchActionSubmitted BatchAction = iota // Batch was successfully submitted
593+
batchActionSubmitted batchAction = iota // Batch was successfully submitted
594594
batchActionTooBig // Batch is too big and needs to be handled by caller
595595
batchActionSkip // Batch should be skipped (single item too big)
596596
batchActionFail // Unrecoverable error
597597
)
598598

599599
// batchResult contains the result of processing a batch
600600
type batchResult[T any] struct {
601-
action BatchAction
601+
action batchAction
602602
submittedCount int
603603
splitBatches []submissionBatch[T]
604604
}

0 commit comments

Comments
 (0)