Skip to content

Commit

Permalink
add back batch size ceiling (#1287)
Browse files Browse the repository at this point in the history
Co-authored-by: Darwin D Wu <darwin67@users.noreply.github.com>
  • Loading branch information
darwin67 and darwin67 committed Apr 18, 2024
1 parent 9651747 commit dbb714c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/inngest/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func NewEventBatchConfig(conf map[string]any) (*EventBatchConfig, error) {
return nil, fmt.Errorf("failed to decode batch config: %v", err)
}

if config.MaxSize <= 0 {
if config.MaxSize <= 0 || config.MaxSize > consts.DefaultBatchSize {
config.MaxSize = consts.DefaultBatchSize
}

Expand Down

0 comments on commit dbb714c

Please sign in to comment.